instance method
run_with_callbacks_and_miniunit
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.2.3Signature
run_with_callbacks_and_miniunit(runner)
No documentation comment.
Parameters
-
runnerreq
Source
# 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
Defined in activesupport/lib/active_support/testing/setup_and_teardown.rb line 33
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Testing::SetupAndTeardown