From 1237af55f826823cff6b51829e3f7c239d87249f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Fri, 15 Mar 2019 18:03:40 +0100 Subject: Unskip `--binstubs` flag deprecation --- spec/other/major_deprecation_spec.rb | 11 +++++++++-- 1 file 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 -- cgit v1.2.1