Skip to content

Commit

Permalink
Strip internal:array from backtrace test
Browse files Browse the repository at this point in the history
This is too much of an implementation detail that we probably shouldn't
reproduce.
  • Loading branch information
herwinw committed May 20, 2024
1 parent e3aaa39 commit 5dfcaa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/natalie/backtrace_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Baz < Buz # Buz is undefined
end
end
}.should raise_error(NameError) { |e| bt = e.backtrace }
bt.filter_map { |l| l.match(/<[^>]+>/)&.to_s }.grep_v(/<top \(required\)>/).uniq.should == %w[
bt.filter_map { |l| l.match(/<[^>]+>/)&.to_s }.grep_v(/<top \(required\)>/).grep_v(/<internal:.*>/).uniq.should == %w[
<class:Bar>
<module:Foo>
<main>
Expand Down

0 comments on commit 5dfcaa7

Please sign in to comment.