From 5d7857b7f6339c3ae4b0d38229148e6e45ad400e Mon Sep 17 00:00:00 2001 From: tompng Date: Thu, 3 Oct 2024 23:23:51 +0900 Subject: [PATCH] Fix tests for ruby 3.4 new hash inspect style Apply changes in https://github.com/ruby/ruby/pull/10924 --- test/test_error_highlight.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_error_highlight.rb b/test/test_error_highlight.rb index 63e7032..f0da5b5 100644 --- a/test/test_error_highlight.rb +++ b/test/test_error_highlight.rb @@ -1241,7 +1241,7 @@ def custom_formatter.message_for(spot) assert_error_message(NoMethodError, <<~END) do undefined method `time' for #{ ONE_RECV_MESSAGE } -{:first_lineno=>#{ __LINE__ + 3 }, :first_column=>7, :last_lineno=>#{ __LINE__ + 3 }, :last_column=>12, :snippet=>" 1.time {}\\n"} +#{{ first_lineno: __LINE__ + 3, first_column: 7, last_lineno: __LINE__ + 3, last_column: 12, snippet: " 1.time {}\n" }.inspect} END 1.time {}