Class: MiniTest::Unit

Inherits:
Object
  • Object
show all
Defined in:
lib/running_man/block.rb

Instance Method Summary collapse

Instance Method Details

#_run_suite_with_rm(suite, type) ⇒ Object Also known as: _run_suite



141
142
143
144
145
146
147
148
149
150
151
152
# File 'lib/running_man/block.rb', line 141

def _run_suite_with_rm(suite, type)
  ret = _run_suite_without_rm(suite, type)
  suite.final_teardowns.each do |teardown|
    begin
      teardown.run(suite.new('teardown'))
    rescue
      puts "#{$!.class} on #{suite} teardown: #{$!}"
      $!.backtrace { |b| puts ">> #{b}" }
    end
  end if suite.respond_to?(:final_teardowns)
  ret
end