diff options
author | David RodrÃguez <[email protected]> | 2020-06-03 18:43:17 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2020-06-18 19:14:15 +0900 |
commit | 61b6f53337cb71b35c56d480ec6044ba7e85cb71 () | |
tree | 02cb7fb6e175c9114a87bee50551334a2f7358fb /spec/bundler/commands/check_spec.rb | |
parent | 529a9e8a1f804332461a8519fe46dd78f3cb4265 (diff) |
[rubygems/rubygems] Make helpers raise by default
https://.com/rubygems/rubygems/commit/ade0c441d5
Notes: Merged: https://.com/ruby/ruby/pull/3212
-rw-r--r-- | spec/bundler/commands/check_spec.rb | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -56,7 +56,7 @@ RSpec.describe "bundle check" do gem "rails" G - bundle :check expect(err).to include("Bundler can't satisfy your Gemfile's dependencies.") end @@ -66,7 +66,7 @@ RSpec.describe "bundle check" do gem "rails" G - bundle :check expect(exitstatus).to be > 0 if exitstatus expect(err).to include("Bundler can't satisfy your Gemfile's dependencies.") end @@ -83,7 +83,7 @@ RSpec.describe "bundle check" do gem "rails_pinned_to_old_activesupport" G - bundle :check expect(err).to include("Bundler can't satisfy your Gemfile's dependencies.") end @@ -127,7 +127,7 @@ RSpec.describe "bundle check" do gem "rack" G - bundle "check" expect(err).to include("* rack (1.0.0)") expect(exitstatus).to eq(1) if exitstatus end @@ -195,13 +195,13 @@ RSpec.describe "bundle check" do end it "outputs an error when the default Gemfile is not found" do - bundle :check expect(exitstatus).to eq(10) if exitstatus expect(err).to include("Could not locate Gemfile") end it "does not output fatal error message" do - bundle :check expect(exitstatus).to eq(10) if exitstatus expect(err).not_to include("Unfortunately, a fatal error has occurred. ") end @@ -216,7 +216,7 @@ RSpec.describe "bundle check" do bundle! "install" FileUtils.rm(bundled_app_lock) - bundle :check expect(last_command).to be_failure end @@ -250,7 +250,7 @@ RSpec.describe "bundle check" do gem "rails" G - bundle "check --path vendor/bundle" end it "returns false" do @@ -278,7 +278,7 @@ RSpec.describe "bundle check" do it "shows what is missing with the current Gemfile if it is not satisfied" do simulate_new_machine - bundle :check expect(err).to match(/The following gems are missing/) expect(err).to include("* rack (1.0") end @@ -333,7 +333,7 @@ RSpec.describe "bundle check" do context "is older" do it "does not change the lock" do lockfile lock_with("1.10.1") - bundle :check lockfile_should_be lock_with("1.10.1") end end |