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