Class: Minitest::BacktraceFilter
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#filter(bt) ⇒ Object
765 766 767 768 769 770 771 772 773 774 775 |
# File 'lib/minitest.rb', line 765 def filter bt return ["No backtrace"] unless bt return bt.dup if $DEBUG new_bt = bt.take_while { |line| line !~ /lib\/minitest/ } new_bt = bt.select { |line| line !~ /lib\/minitest/ } if new_bt.empty? new_bt = bt.dup if new_bt.empty? new_bt end |