diff options
Diffstat (limited to 'test/rubygems/test_gem_commands_open_command.rb')
-rw-r--r-- | test/rubygems/test_gem_commands_open_command.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/rubygems/test_gem_commands_open_command.rb b/test/rubygems/test_gem_commands_open_command.rb index 9f14353485..2519a20883 100644 --- a/test/rubygems/test_gem_commands_open_command.rb +++ b/test/rubygems/test_gem_commands_open_command.rb @@ -50,7 +50,7 @@ class TestGemCommandsOpenCommand < Gem::TestCase end end - assert_match %r{Unable to find gem 'foo'}, @ui.output + assert_match(/Unable to find gem 'foo'/, @ui.output) assert_equal "", @ui.error end @@ -63,7 +63,7 @@ class TestGemCommandsOpenCommand < Gem::TestCase end end - assert_match %r{Unable to find gem 'foo'}, @ui.output + assert_match(/Unable to find gem 'foo'/, @ui.output) assert_equal "", @ui.error end @@ -92,7 +92,7 @@ class TestGemCommandsOpenCommand < Gem::TestCase end end - assert_match %r{'foo' is a default gem and can't be opened\.}, @ui.output + assert_match(/'foo' is a default gem and can't be opened\./, @ui.output) assert_equal "", @ui.error end end |