diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-03-15 18:03:40 +0100 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-03-15 18:03:40 +0100 |
commit | 1237af55f826823cff6b51829e3f7c239d87249f (patch) | |
tree | 7628562b4a49b736cad38600da0abb1e7d46aeeb | |
parent | 1591215e636d68117c04158dfe8da81c8ef2b357 (diff) | |
download | bundler-unskip_binstubs_deprecation_specs.tar.gz |
Unskip `--binstubs` flag deprecationunskip_binstubs_deprecation_specs
-rw-r--r-- | spec/other/major_deprecation_spec.rb | 11 |
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 |