[rubygems/rubygems] Improve heredoc indentation in exec specs

https://github.com/rubygems/rubygems/commit/abb658757f
This commit is contained in:
David Rodríguez 2024-11-28 19:47:10 +01:00 committed by git
parent 8b75164381
commit d2e5994161

View File

@ -881,7 +881,7 @@ RSpec.describe "bundle exec" do
let(:exit_code) { Bundler::GemNotFound.new.status_code } let(:exit_code) { Bundler::GemNotFound.new.status_code }
let(:expected) { "" } let(:expected) { "" }
let(:expected_err) { <<-EOS.strip } let(:expected_err) { <<~EOS.strip }
Could not find gem 'myrack (= 2)' in locally installed gems. Could not find gem 'myrack (= 2)' in locally installed gems.
The source contains the following gems matching 'myrack': The source contains the following gems matching 'myrack':
@ -963,7 +963,7 @@ Run `bundle install` to install missing gems.
puts "__FILE__: #{__FILE__.inspect}" puts "__FILE__: #{__FILE__.inspect}"
RUBY RUBY
let(:expected) { super() + <<-EOS.chomp } let(:expected) { super() + <<~EOS.chomp }
$0: #{path.to_s.inspect} $0: #{path.to_s.inspect}
__FILE__: #{path.to_s.inspect} __FILE__: #{path.to_s.inspect}