Setup bundler
This commit is contained in:
parent
1d82e1fa48
commit
2f5f6f37c8
2 changed files with 7 additions and 2 deletions
4
Rakefile
4
Rakefile
|
@ -1,5 +1,6 @@
|
||||||
require "bundler/gem_helper"
|
require "bundler/gem_helper"
|
||||||
require "rspec/core/rake_task"
|
require "rspec/core/rake_task"
|
||||||
|
require "rubocop/rake_task"
|
||||||
|
|
||||||
namespace "psenv" do
|
namespace "psenv" do
|
||||||
Bundler::GemHelper.install_tasks name: "psenv"
|
Bundler::GemHelper.install_tasks name: "psenv"
|
||||||
|
@ -20,5 +21,6 @@ task install: ["psenv:install", "psenv-rails:install"]
|
||||||
task release: ["psenv:release", "psenv-rails:release"]
|
task release: ["psenv:release", "psenv-rails:release"]
|
||||||
|
|
||||||
RSpec::Core::RakeTask.new(:spec)
|
RSpec::Core::RakeTask.new(:spec)
|
||||||
|
RuboCop::RakeTask.new(:rubocop)
|
||||||
|
|
||||||
task default: :spec
|
task default: %i[rubocop spec]
|
||||||
|
|
|
@ -1,7 +1,10 @@
|
||||||
require "bundler/setup"
|
require "bundler/setup"
|
||||||
require "webmock/rspec"
|
Bundler.setup
|
||||||
|
|
||||||
require "psenv"
|
require "psenv"
|
||||||
|
|
||||||
|
require "webmock/rspec"
|
||||||
|
|
||||||
WebMock.disable_net_connect!(allow_localhost: true)
|
WebMock.disable_net_connect!(allow_localhost: true)
|
||||||
|
|
||||||
RSpec.configure do |config|
|
RSpec.configure do |config|
|
||||||
|
|
Loading…
Reference in a new issue