mirror of
https://github.com/ruby/ruby.git
synced 2025-08-26 14:34:39 +02:00
Allow ambiguosity of return
line
This commit is contained in:
parent
2f76faaf51
commit
65b991bc85
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue