diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2017-07-24 17:52:40 -0500 |
---|---|---|
committer | Colby Swandale <colby@taplaboratories.com> | 2017-08-20 11:18:13 +1000 |
commit | c6a85baca15687e9bcf553d3be8439662ebe4c45 (patch) | |
tree | 7f7f91a29a19d516a80b7d676e9a5d5768563642 | |
parent | f8db9b697fcdcd0eaf1268b2cc6143039ed14ca9 (diff) | |
download | bundler-c6a85baca15687e9bcf553d3be8439662ebe4c45.tar.gz |
Update major deprecation specs for narrower gems.rb warning
-rw-r--r-- | spec/other/major_deprecation_spec.rb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/spec/other/major_deprecation_spec.rb b/spec/other/major_deprecation_spec.rb index 1f5d16e516..fba177b497 100644 --- a/spec/other/major_deprecation_spec.rb +++ b/spec/other/major_deprecation_spec.rb @@ -132,10 +132,12 @@ RSpec.describe "major deprecations", :bundler => "< 2" do end it "should print a Gemfile deprecation warning" do - install_gemfile <<-G + create_file "gems.rb" + install_gemfile! <<-G source "file://#{gem_repo1}" gem "rack" G + expect(the_bundle).to include_gem "rack 1.0" expect(warnings).to have_major_deprecation a_string_including("gems.rb and gems.locked will be preferred to Gemfile and Gemfile.lock.") end @@ -156,7 +158,8 @@ RSpec.describe "major deprecations", :bundler => "< 2" do context "when Bundler.setup is run in a ruby script" do it "should print a single deprecation warning" do - install_gemfile <<-G + create_file "gems.rb" + install_gemfile! <<-G source "file://#{gem_repo1}" gem "rack", :group => :test G @@ -171,7 +174,7 @@ RSpec.describe "major deprecations", :bundler => "< 2" do Bundler.setup RUBY - expect(warnings).to have_major_deprecation("gems.rb and gems.locked will be preferred to Gemfile and Gemfile.lock.") + expect(warnings_without_version_messages).to have_major_deprecation("gems.rb and gems.locked will be preferred to Gemfile and Gemfile.lock.") end end |