module SetupAndTeardown
Ruby on Rails 8.0.4
Adds support for setup and teardown callbacks. These callbacks serve as a replacement to overwriting the #setup and #teardown methods of your TestCase.
class ExampleTest < ActiveSupport::TestCase
setup do
# ...
end
teardown do
# ...
end
end
Namespace
Modules
Includes
Extends
Methods (defined here)
- self. prepended
Methods (inherited)
From ActiveSupport::Callbacks
(1)
From ActiveSupport::Concern
(3)
- # class_methods
- # included
- # prepended
From ActiveSupport::DescendantsTracker
(3)
- # descendants
- self. descendants
- self. subclasses