Allow ambiguosity of return line

This commit is contained in:
Nobuyoshi Nakada 2024-06-25 15:45:54 +09:00
parent 2f76faaf51
commit 65b991bc85
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465

View File

@ -67,7 +67,7 @@ describe 'TracePoint#inspect' do
end
trace_point_spec_test_return
end
ruby_version_is("3.4") { line -= 1 }
ruby_version_is("3.4") { line = "(?:#{line}|#{line-1})" }
inspect.should =~ /\A#<TracePoint:return [`']trace_point_spec_test_return'#{@path_prefix}#{__FILE__}:#{line}>\z/
end