summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-02-27 00:48:48 +0100
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-02-28 16:41:21 +0100
commitcc7faa030aa89f2a8bc38abe2b14e1c902751bcb (patch)
treee0d3c10ddf4e8b6e7fae48fd553a6c7ed90bb4f5
parenta30cd4b6f4c92372b9c8581eec6e38fb5c610c59 (diff)
downloadbundler-cc7faa030aa89f2a8bc38abe2b14e1c902751bcb.tar.gz
Adapt `bundle show` deprecation specs
-rw-r--r--spec/other/major_deprecation_spec.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/other/major_deprecation_spec.rb b/spec/other/major_deprecation_spec.rb
index 03f86eff7b..942007844c 100644
--- a/spec/other/major_deprecation_spec.rb
+++ b/spec/other/major_deprecation_spec.rb
@@ -218,7 +218,11 @@ The :bitbucket git source is deprecated, and will be removed in Bundler 2.0. Add
bundle! :show
end
- it "prints a deprecation warning" do
+ it "does not print a deprecation warning", :bundler => "< 2" do
+ expect(warnings).not_to have_major_deprecation
+ end
+
+ it "prints a deprecation warning", :bundler => "2" do
expect(warnings).to have_major_deprecation a_string_including("use `bundle list` instead of `bundle show`")
end
end