diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-04-07 09:15:17 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-04-07 05:13:05 +0000 |
commit | 250e97c0fba48d1f87ccecb1b1e1b4bd2a30c388 (patch) | |
tree | b9018bb2916c2e007b7f57981295e4c4f0fd5adc /test/rubygems/helper.rb | |
parent | 84ce6fc87347c15cc81939de2d1872984711a4ed (diff) |
[rubygems/rubygems] util/rubocop -A --only Style/FormatString
https://github.com/rubygems/rubygems/commit/132a56569d
Diffstat (limited to 'test/rubygems/helper.rb')
-rw-r--r-- | test/rubygems/helper.rb | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/test/rubygems/helper.rb b/test/rubygems/helper.rb index 4b9fc258dc..be43e2a26c 100644 --- a/test/rubygems/helper.rb +++ b/test/rubygems/helper.rb @@ -252,16 +252,10 @@ class Gem::TestCase < Test::Unit::TestCase def assert_contains_make_command(target, output, msg = nil) if output.include?("\n") msg = build_message(msg, - "Expected output containing make command \"%s\", but was \n\nBEGIN_OF_OUTPUT\n%sEND_OF_OUTPUT" % [ - ("%s %s" % [make_command, target]).rstrip, - output, - ]) + format("Expected output containing make command \"%s\", but was \n\nBEGIN_OF_OUTPUT\n%sEND_OF_OUTPUT", format("%s %s", make_command, target).rstrip, output)) else msg = build_message(msg, - 'Expected make command "%s", but was "%s"' % [ - ("%s %s" % [make_command, target]).rstrip, - output, - ]) + format('Expected make command "%s", but was "%s"', format("%s %s", make_command, target).rstrip, output)) end assert scan_make_command_lines(output).any? {|line| |