diff options
Diffstat (limited to 'spec/bundler/commands/remove_spec.rb')
-rw-r--r-- | spec/bundler/commands/remove_spec.rb | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/spec/bundler/commands/remove_spec.rb b/spec/bundler/commands/remove_spec.rb index 3b255cd03d..04e0aeda82 100644 --- a/spec/bundler/commands/remove_spec.rb +++ b/spec/bundler/commands/remove_spec.rb @@ -7,7 +7,7 @@ RSpec.describe "bundle remove" do source "#{file_uri_for(gem_repo1)}" G - bundle "remove" + bundle "remove", :raise_on_error => false expect(err).to include("Please specify gems to remove.") end @@ -76,7 +76,7 @@ RSpec.describe "bundle remove" do source "#{file_uri_for(gem_repo1)}" G - bundle "remove rack" + bundle "remove rack", :raise_on_error => false expect(err).to include("`rack` is not specified in #{bundled_app_gemfile} so it could not be removed.") end @@ -113,7 +113,7 @@ RSpec.describe "bundle remove" do gem "rspec" G - bundle "remove rails rack minitest" + bundle "remove rails rack minitest", :raise_on_error => false expect(err).to include("`rack` is not specified in #{bundled_app_gemfile} so it could not be removed.") gemfile_should_be <<-G @@ -340,7 +340,7 @@ RSpec.describe "bundle remove" do gem "rack"; gem "rails" G - bundle "remove rails" + bundle "remove rails", :raise_on_error => false expect(err).to include("Gems could not be removed. rack (>= 0) would also have been removed.") gemfile_should_be <<-G @@ -352,7 +352,7 @@ RSpec.describe "bundle remove" do context "when some gems could not be removed" do it "shows warning for gems not removed and success for those removed" do - install_gemfile <<-G + install_gemfile <<-G, :raise_on_error => false source "#{file_uri_for(gem_repo1)}" gem"rack" gem"rspec" @@ -458,7 +458,7 @@ RSpec.describe "bundle remove" do eval_gemfile "Gemfile-other" G - bundle "remove rack" + bundle "remove rack", :raise_on_error => false expect(err).to include("`rack` is not specified in #{bundled_app_gemfile} so it could not be removed.") end @@ -477,7 +477,7 @@ RSpec.describe "bundle remove" do gem "rack" G - bundle "remove rack" + bundle "remove rack", :raise_on_error => false expect(out).to include("rack was removed.") expect(err).to include("`rack` is not specified in #{bundled_app("Gemfile-other")} so it could not be removed.") @@ -502,7 +502,7 @@ RSpec.describe "bundle remove" do gem "rack" G - bundle "remove rack" + bundle "remove rack", :raise_on_error => false expect(out).to include("rack was removed.") expect(err).to include("Gems could not be removed. rails (>= 0) would also have been removed.") @@ -527,7 +527,7 @@ RSpec.describe "bundle remove" do gem "rails"; gem "rack" G - bundle "remove rack" + bundle "remove rack", :raise_on_error => false expect(err).to include("Gems could not be removed. rails (>= 0) would also have been removed.") expect(bundled_app("Gemfile-other").read).to include("gem \"rack\"") |