summaryrefslogtreecommitdiff
path: root/test/ruby/test_m17n_comb.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_m17n_comb.rb')
-rw-r--r--test/ruby/test_m17n_comb.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_m17n_comb.rb b/test/ruby/test_m17n_comb.rb
index cf80377172..3ecd169c4c 100644
--- a/test/ruby/test_m17n_comb.rb
+++ b/test/ruby/test_m17n_comb.rb
@@ -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