method
run_with_callbacks_and_miniunit
v2.2.1 -
Show latest stable
- Class:
ActiveSupport::Testing
run_with_callbacks_and_miniunit(runner)public
No documentation available.
# File activesupport/lib/active_support/testing/setup_and_teardown.rb, line 33
def run_with_callbacks_and_miniunit(runner)
result = '.'
begin
run_callbacks :setup
result = super
rescue Exception => e
result = runner.puke(self.class, self.name, e)
ensure
begin
teardown
run_callbacks :teardown, :enumerator => :reverse_each
rescue Exception => e
result = runner.puke(self.class, self.name, e)
end
end
result
end