Permalink
Browse files

Accept no backtrace fault as a workaround for test-spec :<

GitHub: fixes #22

Reported by Cédric Boutillier. Thanks!!!
  • Loading branch information...
kou committed Mar 5, 2012
1 parent d605074 commit 2ead57369735f01589687bc56d61bac37bf371a5
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/test/unit/ui/console/testrunner.rb
@@ -191,6 +191,9 @@ def output_fault_in_detail(fault)
def output_fault_backtrace(fault)
snippet_is_shown = false
backtrace = fault.location
+ # workaround for test-spec. :<
+ # see also GitHub:#22
+ backtrace ||= []
backtrace.each_with_index do |entry, i|
output(entry)
next if snippet_is_shown

0 comments on commit 2ead573

Please sign in to comment.