1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/ruby/test_m17n_comb.rb (TestM17NComb#test_str_scan):

assert_raise does not check exception message.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2011-02-11 12:54:04 +00:00
parent 9c560af1b7
commit c750f945c6

View file

@ -1095,7 +1095,7 @@ class TestM17NComb < Test::Unit::TestCase
if s1.valid_encoding?
assert_raise(Encoding::CompatibilityError) { s1.scan(s2) }
else
assert_raise(ArgumentError, /invalid byte sequence/) { s1.scan(s2) }
assert_match(/invalid byte sequence/, assert_raise(ArgumentError) { s1.scan(s2) }.message)
end
next
end