summaryrefslogtreecommitdiff
path: root/spec/bundler/commands/check_spec.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <[email protected]>2020-06-24 19:53:16 +0200
committerHiroshi SHIBATA <[email protected]>2020-07-15 16:05:12 +0900
commit2fafc08aa34ddba39d0bfdb6e7c5de4f7bf7f55e ()
tree7b857ff42b6b51018793e191e2f19adeaf023033 /spec/bundler/commands/check_spec.rb
parent547ba6608e3e81674f829b75fcb0a9023889e235 (diff)
[rubygems/rubygems] Remove unneeded trailing conditions on exitstatus
https://.com/rubygems/rubygems/commit/27e0e4ecb6
Notes: Merged: https://.com/ruby/ruby/pull/3275
-rw-r--r--spec/bundler/commands/check_spec.rb10
1 files changed, 5 insertions, 5 deletions
@@ -66,7 +66,7 @@ RSpec.describe "bundle check" do
G
bundle :check, :raise_on_error => false
- expect(exitstatus).to be > 0 if exitstatus
expect(err).to include("Bundler can't satisfy your Gemfile's dependencies.")
end
@@ -128,7 +128,7 @@ RSpec.describe "bundle check" do
bundle "check", :raise_on_error => false
expect(err).to include("* rack (1.0.0)")
- expect(exitstatus).to eq(1) if exitstatus
end
it "ignores missing gems restricted to other platforms" do
@@ -195,13 +195,13 @@ RSpec.describe "bundle check" do
it "outputs an error when the default Gemfile is not found" do
bundle :check, :raise_on_error => false
- 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, :raise_on_error => false
- expect(exitstatus).to eq(10) if exitstatus
expect(err).not_to include("Unfortunately, a fatal error has occurred. ")
end
@@ -253,7 +253,7 @@ RSpec.describe "bundle check" do
end
it "returns false" do
- expect(exitstatus).to eq(1) if exitstatus
expect(err).to match(/The following gems are missing/)
end
end