module SetupAndTeardown
Ruby on Rails 8.1.2
Since v2.2.3Adds 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