diff options
| author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2018-09-18 20:27:53 -0300 |
|---|---|---|
| committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2018-09-18 21:40:54 -0300 |
| commit | bae91432ee8dc278ec7bb8d0a292391708235715 (patch) | |
| tree | f0022ffd67f90fba021aaa2fe0d07bb9d36adee5 /spec/install | |
| parent | 2d2059a87e1e1bd9a1fc986c7656508af51b6207 (diff) | |
| download | bundler-bae91432ee8dc278ec7bb8d0a292391708235715.tar.gz | |
Fix issue with initial implementation
Diffstat (limited to 'spec/install')
| -rw-r--r-- | spec/install/redownload_spec.rb | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/spec/install/redownload_spec.rb b/spec/install/redownload_spec.rb index d6fcc9c2b8..a3fdc07475 100644 --- a/spec/install/redownload_spec.rb +++ b/spec/install/redownload_spec.rb @@ -61,8 +61,13 @@ RSpec.describe "bundle install" do let(:flag) { "force" } end - it "shows a deprecation" do - bundle! :install, :force => true + it "shows a deprecation when single flag passed" do + bundle! "install --force" + expect(out).to include "[DEPRECATED FOR 2.0] The `--force` option has been renamed to `--redownload`" + end + + it "shows a deprecation when multiple flags passed" do + bundle! "install --no-color --force" expect(out).to include "[DEPRECATED FOR 2.0] The `--force` option has been renamed to `--redownload`" end end @@ -72,8 +77,13 @@ RSpec.describe "bundle install" do let(:flag) { "redownload" } end - it "does not show a deprecation" do - bundle! :install, :redownload => true + it "does not show a deprecation when single flag passed" do + bundle! "install --redownload" + expect(out).not_to include "[DEPRECATED FOR 2.0] The `--force` option has been renamed to `--redownload`" + end + + it "does not show a deprecation when single multiple flags passed" do + bundle! "install --no-color --redownload" expect(out).not_to include "[DEPRECATED FOR 2.0] The `--force` option has been renamed to `--redownload`" end end |
