diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2020-06-24 19:53:16 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-07-15 16:05:12 +0900 |
commit | 2fafc08aa34ddba39d0bfdb6e7c5de4f7bf7f55e (patch) | |
tree | 7b857ff42b6b51018793e191e2f19adeaf023033 /spec/bundler/install/gemfile | |
parent | 547ba6608e3e81674f829b75fcb0a9023889e235 (diff) |
[rubygems/rubygems] Remove unneeded trailing conditions on exitstatus
https://github.com/rubygems/rubygems/commit/27e0e4ecb6
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3275
Diffstat (limited to 'spec/bundler/install/gemfile')
-rw-r--r-- | spec/bundler/install/gemfile/git_spec.rb | 2 | ||||
-rw-r--r-- | spec/bundler/install/gemfile/path_spec.rb | 2 | ||||
-rw-r--r-- | spec/bundler/install/gemfile/sources_spec.rb | 8 |
3 files changed, 6 insertions, 6 deletions
diff --git a/spec/bundler/install/gemfile/git_spec.rb b/spec/bundler/install/gemfile/git_spec.rb index aaef839c0a..c0e2510acd 100644 --- a/spec/bundler/install/gemfile/git_spec.rb +++ b/spec/bundler/install/gemfile/git_spec.rb @@ -926,7 +926,7 @@ RSpec.describe "bundle install with git sources" do gem "foo", :git => "#{lib_path("foo-1.0")}" G - expect(exitstatus).to_not eq(0) if exitstatus + expect(exitstatus).to_not eq(0) expect(err).to include("Bundler could not install a gem because it " \ "needs to create a directory, but a file exists " \ "- #{default_bundle_path("bundler")}") diff --git a/spec/bundler/install/gemfile/path_spec.rb b/spec/bundler/install/gemfile/path_spec.rb index 84ece3d699..07722d09dd 100644 --- a/spec/bundler/install/gemfile/path_spec.rb +++ b/spec/bundler/install/gemfile/path_spec.rb @@ -309,7 +309,7 @@ RSpec.describe "bundle install with explicit source paths" do gemspec :path => "#{lib_path("foo")}" G - expect(exitstatus).to eq(15) if exitstatus + expect(exitstatus).to eq(15) expect(err).to match(/There are multiple gemspecs/) end diff --git a/spec/bundler/install/gemfile/sources_spec.rb b/spec/bundler/install/gemfile/sources_spec.rb index 3690dc50d6..be41857043 100644 --- a/spec/bundler/install/gemfile/sources_spec.rb +++ b/spec/bundler/install/gemfile/sources_spec.rb @@ -38,7 +38,7 @@ RSpec.describe "bundle install with gems on multiple sources" do it "fails", :bundler => "3" do bundle :instal, :raise_on_error => false expect(err).to include("Each source after the first must include a block") - expect(exitstatus).to eq(4) if exitstatus + expect(exitstatus).to eq(4) end end @@ -64,7 +64,7 @@ RSpec.describe "bundle install with gems on multiple sources" do it "fails", :bundler => "3" do bundle :install, :raise_on_error => false expect(err).to include("Each source after the first must include a block") - expect(exitstatus).to eq(4) if exitstatus + expect(exitstatus).to eq(4) end end end @@ -258,7 +258,7 @@ RSpec.describe "bundle install with gems on multiple sources" do it "fails", :bundler => "3" do bundle :install, :raise_on_error => false expect(err).to include("Each source after the first must include a block") - expect(exitstatus).to eq(4) if exitstatus + expect(exitstatus).to eq(4) end end @@ -298,7 +298,7 @@ RSpec.describe "bundle install with gems on multiple sources" do it "fails", :bundler => "3" do bundle :install, :raise_on_error => false expect(err).to include("Each source after the first must include a block") - expect(exitstatus).to eq(4) if exitstatus + expect(exitstatus).to eq(4) end end end |