module MiniTest
def self.filter_backtrace bt
def self.filter_backtrace bt return ["No backtrace"] unless bt new_bt = [] bt.each do |line| break if line.rindex(MINI_DIR, 0) new_bt << line end new_bt = bt.reject { |line| line.rindex(MINI_DIR, 0) } if new_bt.empty? new_bt = bt.dup if new_bt.empty? new_bt end