module SetupAndTeardown
Ruby on Rails 4.1.16
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
Used by
Included by (1)
Methods (inherited)
From ActiveSupport::Callbacks (1)
From ActiveSupport::Concern (2)
From ActiveSupport::DescendantsTracker (7)
- # descendants
- # direct_descendants
- # inherited
- self. clear
- self. descendants
- self. direct_descendants
- self. store_inherited