summaryrefslogtreecommitdiff
path: root/spec/bundler/runtime
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-06-24 19:52:14 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-07-15 16:05:12 +0900
commit16823d4a05580e041ff514122de5f3a3fbcef409 (patch)
tree56b01b2c04e7b89e4e7437db1e4abcc9ad7fde94 /spec/bundler/runtime
parente2837a77be2164fa17be046eabb93cbb63f77311 (diff)
[rubygems/rubygems] Remove unnecessary assertions on exitstatus
Since our helpers now raise by default if the subcommand fails, these will never actually fail and are not necessary. https://github.com/rubygems/rubygems/commit/6153b9321e
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3275
Diffstat (limited to 'spec/bundler/runtime')
-rw-r--r--spec/bundler/runtime/executable_spec.rb1
-rw-r--r--spec/bundler/runtime/gem_tasks_spec.rb1
-rw-r--r--spec/bundler/runtime/inline_spec.rb11
3 files changed, 0 insertions, 13 deletions
diff --git a/spec/bundler/runtime/executable_spec.rb b/spec/bundler/runtime/executable_spec.rb
index 0f0226fb97..e39338e425 100644
--- a/spec/bundler/runtime/executable_spec.rb
+++ b/spec/bundler/runtime/executable_spec.rb
@@ -163,7 +163,6 @@ RSpec.describe "Running bin/* commands" do
# run binstub for non default Gemfile
gembin "foo"
- expect(exitstatus).to eq(0) if exitstatus
expect(out).to eq("1.0")
end
end
diff --git a/spec/bundler/runtime/gem_tasks_spec.rb b/spec/bundler/runtime/gem_tasks_spec.rb
index 53515c0d2e..b2f9ae725e 100644
--- a/spec/bundler/runtime/gem_tasks_spec.rb
+++ b/spec/bundler/runtime/gem_tasks_spec.rb
@@ -41,7 +41,6 @@ RSpec.describe "require 'bundler/gem_tasks'" do
]
tasks = out.lines.to_a.map {|s| s.split("#").first.strip }
expect(tasks & expected_tasks).to eq(expected_tasks)
- expect(exitstatus).to eq(0) if exitstatus
end
it "defines a working `rake install` task", :ruby_repo do
diff --git a/spec/bundler/runtime/inline_spec.rb b/spec/bundler/runtime/inline_spec.rb
index 4e76c2dfb0..86ac3f4bb6 100644
--- a/spec/bundler/runtime/inline_spec.rb
+++ b/spec/bundler/runtime/inline_spec.rb
@@ -57,7 +57,6 @@ RSpec.describe "bundler/inline#gemfile" do
RUBY
expect(out).to eq("two")
- expect(exitstatus).to be_zero if exitstatus
script <<-RUBY, :raise_on_error => false
gemfile do
@@ -80,7 +79,6 @@ RSpec.describe "bundler/inline#gemfile" do
RUBY
expect(out).to include("Rack's post install message")
- expect(exitstatus).to be_zero if exitstatus
script <<-RUBY, :artifice => "endpoint"
gemfile(true) do
@@ -93,7 +91,6 @@ RSpec.describe "bundler/inline#gemfile" do
err_lines = err.split("\n")
err_lines.reject!{|line| line =~ /\.rb:\d+: warning: / } unless RUBY_VERSION < "2.7"
expect(err_lines).to be_empty
- expect(exitstatus).to be_zero if exitstatus
end
it "lets me use my own ui object" do
@@ -113,7 +110,6 @@ RSpec.describe "bundler/inline#gemfile" do
RUBY
expect(out).to eq("CONFIRMED!\nCONFIRMED!")
- expect(exitstatus).to be_zero if exitstatus
end
it "has an option for quiet installation" do
@@ -155,7 +151,6 @@ RSpec.describe "bundler/inline#gemfile" do
RUBY
expect(out).to match("OKAY")
- expect(exitstatus).to be_zero if exitstatus
end
it "installs quietly if necessary when the install option is not set" do
@@ -170,7 +165,6 @@ RSpec.describe "bundler/inline#gemfile" do
expect(out).to eq("1.0.0")
expect(err).to be_empty
- expect(exitstatus).to be_zero if exitstatus
end
it "installs quietly from git if necessary when the install option is not set" do
@@ -188,7 +182,6 @@ RSpec.describe "bundler/inline#gemfile" do
expect(out).to eq("1.0.0\n2.0.0")
expect(err).to be_empty
- expect(exitstatus).to be_zero if exitstatus
end
it "allows calling gemfile twice" do
@@ -208,7 +201,6 @@ RSpec.describe "bundler/inline#gemfile" do
expect(out).to eq("two\nfour")
expect(err).to be_empty
- expect(exitstatus).to be_zero if exitstatus
end
it "installs inline gems when a Gemfile.lock is present" do
@@ -243,7 +235,6 @@ RSpec.describe "bundler/inline#gemfile" do
RUBY
expect(err).to be_empty
- expect(exitstatus).to be_zero if exitstatus
end
it "installs inline gems when frozen is set" do
@@ -257,7 +248,6 @@ RSpec.describe "bundler/inline#gemfile" do
RUBY
expect(last_command.stderr).to be_empty
- expect(exitstatus).to be_zero if exitstatus
end
it "installs inline gems when BUNDLE_GEMFILE is set to an empty string" do
@@ -273,7 +263,6 @@ RSpec.describe "bundler/inline#gemfile" do
RUBY
expect(err).to be_empty
- expect(exitstatus).to be_zero if exitstatus
end
it "installs inline gems when BUNDLE_BIN is set" do