diff --git a/Rakefile b/Rakefile index 688a290..312dfb4 100644 --- a/Rakefile +++ b/Rakefile @@ -1,5 +1,6 @@ require "bundler/gem_helper" require "rspec/core/rake_task" +require "rubocop/rake_task" namespace "psenv" do Bundler::GemHelper.install_tasks name: "psenv" @@ -20,5 +21,6 @@ task install: ["psenv:install", "psenv-rails:install"] task release: ["psenv:release", "psenv-rails:release"] RSpec::Core::RakeTask.new(:spec) +RuboCop::RakeTask.new(:rubocop) -task default: :spec +task default: %i[rubocop spec] diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 6d585f9..3d76db6 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,7 +1,10 @@ require "bundler/setup" -require "webmock/rspec" +Bundler.setup + require "psenv" +require "webmock/rspec" + WebMock.disable_net_connect!(allow_localhost: true) RSpec.configure do |config|