Module: ActiveSupport::Testing::SetupAndTeardown::ForMiniTest
- Defined in:
- activesupport/lib/active_support/testing/setup_and_teardown.rb
Instance Method Summary (collapse)
Instance Method Details
- (Object) run(runner)
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'activesupport/lib/active_support/testing/setup_and_teardown.rb', line 31 def run(runner) result = '.' begin _run_setup_callbacks do result = super end rescue Exception => e result = runner.puke(self.class, method_name, e) ensure begin _run_teardown_callbacks rescue Exception => e result = runner.puke(self.class, method_name, e) end end result end |