summaryrefslogtreecommitdiff
path: root/spec/other/major_deprecation_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/other/major_deprecation_spec.rb')
-rw-r--r--spec/other/major_deprecation_spec.rb11
1 files changed, 9 insertions, 2 deletions
diff --git a/spec/other/major_deprecation_spec.rb b/spec/other/major_deprecation_spec.rb
index 3eeeb32b89..278e43bdea 100644
--- a/spec/other/major_deprecation_spec.rb
+++ b/spec/other/major_deprecation_spec.rb
@@ -74,9 +74,16 @@ RSpec.describe "major deprecations" do
end
describe "bundle install --binstubs" do
- xit "should output a deprecation warning" do
+ before do
bundle :install, :binstubs => true
- expect(deprecations).to include("The --binstubs option will be removed")
+ end
+
+ it "should print no deprecations", :bundler => "< 2" do
+ expect(deprecations).to be_empty
+ end
+
+ it "should output a deprecation warning", :bundler => "2" do
+ expect(deprecations).to include("The --binstubs option will be removed in favor of `bundle binstubs`")
end
end
end