summaryrefslogtreecommitdiff
path: root/spec/deprecation_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/deprecation_spec.rb')
-rw-r--r--spec/deprecation_spec.rb15
1 files changed, 12 insertions, 3 deletions
diff --git a/spec/deprecation_spec.rb b/spec/deprecation_spec.rb
index d7df05bb43..19c6514235 100644
--- a/spec/deprecation_spec.rb
+++ b/spec/deprecation_spec.rb
@@ -3,7 +3,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"
@@ -11,7 +10,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
@@ -34,7 +43,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