module
ActiveSupport::Testing::SetupAndTeardown
v8.1.1 -
Show latest stable
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
Included modules
- ActiveSupport::Callbacks
Files
- activesupport/lib/active_support/testing/setup_and_teardown.rb