[rubygems/rubygems] Extract stdboth spec helper

bb13f4e702
This commit is contained in:
David Rodríguez 2025-06-05 10:52:37 +02:00 committed by Hiroshi SHIBATA
parent ee55b82b34
commit d95f7a3c43
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2
15 changed files with 36 additions and 32 deletions

View file

@ -260,7 +260,7 @@ RSpec.describe "bundle install with gem sources" do
gem "myrack"
G
expect(last_command.stdboth).to include(plugin_msg)
expect(stdboth).to include(plugin_msg)
end
describe "with a gem that installs multiple platforms" do
@ -722,7 +722,7 @@ RSpec.describe "bundle install with gem sources" do
gem "ajp-rails", "0.0.0"
G
expect(last_command.stdboth).not_to match(/Error Report/i)
expect(stdboth).not_to match(/Error Report/i)
expect(err).to include("An error occurred while installing ajp-rails (0.0.0), and Bundler cannot continue.").
and include("Bundler::APIResponseInvalidDependenciesError")
end