diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-02-28 17:40:27 +0100 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-03-01 11:03:09 +0100 |
commit | 39904ba9e655f5fed28d052f98e21444fdd716d9 (patch) | |
tree | 8188e7c7e2009d60193a61084725f5a5f4dc1fb8 | |
parent | 4820acf3dbea172c6ec4f165b875acbe85f095cd (diff) | |
download | bundler-39904ba9e655f5fed28d052f98e21444fdd716d9.tar.gz |
Extract setup logic to a before block
-rw-r--r-- | spec/other/major_deprecation_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/other/major_deprecation_spec.rb b/spec/other/major_deprecation_spec.rb index 445c970c4c..8aa6005529 100644 --- a/spec/other/major_deprecation_spec.rb +++ b/spec/other/major_deprecation_spec.rb @@ -108,7 +108,7 @@ RSpec.describe "major deprecations" do end context "when Bundler.setup is run in a ruby script" do - it "should print a single deprecation warning" do + before do create_file "gems.rb" install_gemfile! <<-G source "file://#{gem_repo1}" @@ -124,7 +124,9 @@ RSpec.describe "major deprecations" do Bundler.setup Bundler.setup RUBY + end + it "should print a single deprecation warning" do expect(warnings).to have_major_deprecation("gems.rb and gems.locked will be preferred to Gemfile and Gemfile.lock.") end end |