diff options
author | Yusuke Endoh <[email protected]> | 2023-01-24 17:44:00 +0900 |
---|---|---|
committer | Yusuke Endoh <[email protected]> | 2023-02-20 10:33:06 +0900 |
commit | 8f868a1a65383359e565ed0c874e0d2cba95b0ee (patch) | |
tree | d9cced0e42a152432f7a042661f300b43625acf8 /test/ruby/test_module.rb | |
parent | 1fd181b453a6a2dd16897473afa2f402c7dba8aa (diff) |
Update some tests for the new message format of NoMethodError
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/6950
Diffstat (limited to 'test/ruby/test_module.rb')
-rw-r--r-- | test/ruby/test_module.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_module.rb b/test/ruby/test_module.rb index 6c4defd6b1..434e720f8b 100644 --- a/test/ruby/test_module.rb +++ b/test/ruby/test_module.rb @@ -3281,7 +3281,7 @@ class TestModule < Test::Unit::TestCase methods = singleton_class.private_instance_methods(false) assert_include(methods, :#{method}, ":#{method} should be private") - assert_raise_with_message(NoMethodError, "private method `#{method}' called for main:Object") { + assert_raise_with_message(NoMethodError, /^private method `#{method}' called for /) { recv = self recv.#{method} } |