Skip to content

Commit 1dde666

Browse files
tompngmame
authored andcommitted
Fix tests for ruby 3.4 new hash inspect style
Apply changes in ruby/ruby#10924
1 parent 452f786 commit 1dde666

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_error_highlight.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1241,7 +1241,7 @@ def custom_formatter.message_for(spot)
12411241
assert_error_message(NoMethodError, <<~END) do
12421242
undefined method `time' for #{ ONE_RECV_MESSAGE }
12431243
1244-
{:first_lineno=>#{ __LINE__ + 3 }, :first_column=>7, :last_lineno=>#{ __LINE__ + 3 }, :last_column=>12, :snippet=>" 1.time {}\\n"}
1244+
#{{ first_lineno: __LINE__ + 3, first_column: 7, last_lineno: __LINE__ + 3, last_column: 12, snippet: " 1.time {}\n" }.inspect}
12451245
END
12461246

12471247
1.time {}

0 commit comments

Comments
 (0)