diff options
Diffstat (limited to 'test/rubygems/test_gem_commands_yank_command.rb')
-rw-r--r-- | test/rubygems/test_gem_commands_yank_command.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/rubygems/test_gem_commands_yank_command.rb b/test/rubygems/test_gem_commands_yank_command.rb index 1aafc92bfb..9f337ec67e 100644 --- a/test/rubygems/test_gem_commands_yank_command.rb +++ b/test/rubygems/test_gem_commands_yank_command.rb @@ -46,8 +46,8 @@ class TestGemCommandsYankCommand < Gem::TestCase @cmd.execute end - assert_match %r%Yanking gem from http://example%, @ui.output - assert_match %r%Successfully yanked%, @ui.output + assert_match %r{Yanking gem from http://example}, @ui.output + assert_match %r{Successfully yanked}, @ui.output platform = Gem.platforms[1] body = @fetcher.last_request.body.split('&').sort @@ -77,8 +77,8 @@ class TestGemCommandsYankCommand < Gem::TestCase assert_match 'You have enabled multi-factor authentication. Please enter OTP code.', @otp_ui.output assert_match 'Code: ', @otp_ui.output - assert_match %r%Yanking gem from http://example%, @otp_ui.output - assert_match %r%Successfully yanked%, @otp_ui.output + assert_match %r{Yanking gem from http://example}, @otp_ui.output + assert_match %r{Successfully yanked}, @otp_ui.output assert_equal '111111', @fetcher.last_request['OTP'] end @@ -132,8 +132,8 @@ class TestGemCommandsYankCommand < Gem::TestCase @cmd.execute end - assert_match %r%Yanking gem from https://other.example%, @ui.output - assert_match %r%Successfully yanked%, @ui.output + assert_match %r{Yanking gem from https://other.example}, @ui.output + assert_match %r{Successfully yanked}, @ui.output body = @fetcher.last_request.body.split('&').sort assert_equal %w[gem_name=a version=1.0], body |