Skip to content

Commit

Permalink
Check that backtrace_locations is indeed nil.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Nov 30, 2023
1 parent 4000137 commit c736be9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/sus/output/backtrace.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
# This causes the exception to have a backtrace but not backtrace_locations.
exception.set_backtrace(caller)

expect(exception.backtrace_locations).to be_nil

stack = subject.extract_stack(exception)
expect(stack).to be_a(Array)
expect(stack).to have_attributes(size: be >= 1)
Expand Down

0 comments on commit c736be9

Please sign in to comment.