Allow ambiguosity of return
line
This commit is contained in:
parent
2f76faaf51
commit
65b991bc85
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user