diff options
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_numeric.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_numeric.rb b/test/ruby/test_numeric.rb index fc4f39a91d..7fbb8e955d 100644 --- a/test/ruby/test_numeric.rb +++ b/test/ruby/test_numeric.rb @@ -58,8 +58,8 @@ class TestNumeric < Test::Unit::TestCase def test_numeric a = Numeric.new - assert_raise(TypeError) { def a.foo; end } - assert_raise(TypeError) { eval("def a.\u3042; end") } + assert_raise_with_message(TypeError, /foo/) { def a.foo; end } + assert_raise_with_message(TypeError, /\u3042/) { eval("def a.\u3042; end") } assert_raise(TypeError) { a.dup } end |