Methods
R
Constants
PASSTHROUGH_EXCEPTIONS = MiniTest::Unit::TestCase::PASSTHROUGH_EXCEPTIONS rescue [NoMemoryError, SignalException, Interrupt, SystemExit]
 
Instance Public methods
run(runner)
# File activesupport/lib/active_support/testing/setup_and_teardown.rb, line 32
def run(runner)
  result = '.'
  begin
    run_callbacks :setup do
      result = super
    end
  rescue *PASSTHROUGH_EXCEPTIONS => e
    raise e
  rescue Exception => e
    result = runner.puke(self.class, method_name, e)
  ensure
    begin
      run_callbacks :teardown
    rescue *PASSTHROUGH_EXCEPTIONS => e
      raise e
    rescue Exception => e
      result = runner.puke(self.class, method_name, e)
    end
  end
  result
end