summaryrefslogtreecommitdiff
path: root/test/ruby/test_require.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_require.rb')
-rw-r--r--test/ruby/test_require.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/ruby/test_require.rb b/test/ruby/test_require.rb
index 228a45c4eb3..bca96046407 100644
--- a/test/ruby/test_require.rb
+++ b/test/ruby/test_require.rb
@@ -50,8 +50,7 @@ class TestRequire < Test::Unit::TestCase
def test_require_nonascii
bug3758 = '[ruby-core:31915]'
["\u{221e}", "\x82\xa0".force_encoding("cp932")].each do |path|
- e = assert_raise(LoadError, bug3758) {require path}
- assert_match(/#{path}\z/, e.message, bug3758)
+ assert_raise_with_message(LoadError, /#{path}\z/, bug3758) {require path}
end
end