From d499809fb85ee62b647abfdac4867794fb3642fa Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Fri, 19 Jan 2024 16:03:38 +0900 Subject: [PATCH] Do not include a backtick in error messages and backtraces [Feature #16495] --- test/core_ext/test_name_error_extension.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/core_ext/test_name_error_extension.rb b/test/core_ext/test_name_error_extension.rb index c58b784..116c7cd 100644 --- a/test/core_ext/test_name_error_extension.rb +++ b/test/core_ext/test_name_error_extension.rb @@ -49,7 +49,7 @@ def test_correctable_error_objects_are_dumpable get_message(error) - assert_match(/^undefined method `sizee' for /, + assert_match(/^undefined method [`']sizee' for /, Marshal.load(Marshal.dump(error)).original_message) end end