File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -339,10 +339,8 @@ def foo
339
339
end
340
340
end
341
341
line = __LINE__
342
- foo . should == [
343
- "#{ __FILE__ } :#{ line -3 } :in 'foo'" ,
344
- "#{ __FILE__ } :#{ line +1 } :in 'block (3 levels) in <top (required)>'"
345
- ]
342
+ foo [ 0 ] . should =~ /#{ __FILE__ } :#{ line -3 } :in 'foo'/
343
+ foo [ 1 ] . should =~ /#{ __FILE__ } :#{ line +2 } :in 'block/
346
344
end
347
345
end
348
346
end
Original file line number Diff line number Diff line change @@ -573,10 +573,8 @@ def foo
573
573
end
574
574
end
575
575
line = __LINE__
576
- foo . should == [
577
- "#{ __FILE__ } :#{ line -3 } :in 'foo'" ,
578
- "#{ __FILE__ } :#{ line +1 } :in 'block (3 levels) in <top (required)>'"
579
- ]
576
+ foo [ 0 ] . should =~ /#{ __FILE__ } :#{ line -3 } :in 'foo'/
577
+ foo [ 1 ] . should =~ /#{ __FILE__ } :#{ line +2 } :in 'block/
580
578
end
581
579
end
582
580
You can’t perform that action at this time.
0 commit comments