From 2f5f6f37c8b69fafe4d1b904b77430e7bc8cfaca Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Mon, 7 May 2018 11:46:15 -0400 Subject: [PATCH] Setup bundler --- Rakefile | 4 +++- spec/spec_helper.rb | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) 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|