diff options
author | Andre Arko <andre@arko.net> | 2015-05-05 14:42:41 -0700 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2016-07-05 15:11:19 -0300 |
commit | 2ecbd10ea9be8da65859a6a19d54fe3e2185a075 (patch) | |
tree | c30b2e8f5eeb520c990b8cb4caedc82830267999 /spec | |
parent | 336585833fe152a93702b518d49b8c7dc9676fdc (diff) | |
download | bundler-2ecbd10ea9be8da65859a6a19d54fe3e2185a075.tar.gz |
do not deprecate gems.rb, lol
Diffstat (limited to 'spec')
-rw-r--r-- | spec/deprecation_spec.rb | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/spec/deprecation_spec.rb b/spec/deprecation_spec.rb index a559b5d995..d9bb5b6bb4 100644 --- a/spec/deprecation_spec.rb +++ b/spec/deprecation_spec.rb @@ -4,7 +4,6 @@ require "spec_helper" describe "Bundler version 1.99" do context "when bundle is run" do it "should print a single deprecation warning" do - # install_gemfile calls `bundle :install, opts` install_gemfile <<-G source "file://#{gem_repo1}" gem "rack" @@ -12,7 +11,17 @@ describe "Bundler version 1.99" do expect(err).to eq("DEPRECATION: Gemfile and Gemfile.lock are " \ "deprecated and will be replaced with gems.rb and gems.locked in " \ - "Bundler 2.0.0.") + "Bundler 2.0.") + end + + it "should not warn about gems.rb" do + create_file "gems.rb", <<-G + source "file://#{gem_repo1}" + gem "rack" + G + + bundle :install + expect(err).to lack_errors end end @@ -35,7 +44,7 @@ describe "Bundler version 1.99" do expect(err).to eq("DEPRECATION: Gemfile and Gemfile.lock are " \ "deprecated and will be replaced with gems.rb and gems.locked in " \ - "Bundler 2.0.0.") + "Bundler 2.0.") end end |