instance method
teardown
Ruby on Rails edge
Since v3.0.20Signature
teardown(*args, &block)
Add a callback, which runs after TestCase#teardown.
class ClientTest < ActiveSupport::TestCase teardown do # do client teardown end end : (*untyped) ?{ (?untyped) [self: untyped] -> void } -> void
Parameters
-
argsrest -
blockblock
Source
# File activesupport/lib/active_support/testing/setup_and_teardown.rb, line 55
def teardown(*args, &block)
set_callback(:teardown, :after, *args, &block)
end
Defined in activesupport/lib/active_support/testing/setup_and_teardown.rb line 55
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Testing::SetupAndTeardown::ClassMethods