instance method
teardown
Ruby on Rails 7.2.3
Since v3.0.20Signature
teardown(*args, &block)
Add a callback, which runs after TestCase#teardown.
Parameters
-
argsrest -
blockblock
Source
# File activesupport/lib/active_support/testing/setup_and_teardown.rb, line 34
def teardown(*args, &block)
set_callback(:teardown, :after, *args, &block)
end
Defined in activesupport/lib/active_support/testing/setup_and_teardown.rb line 34
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Testing::SetupAndTeardown::ClassMethods