Type:
Module
Adds support for setup
and teardown
callbacks.
These callbacks serve as a replacement to overwriting the
#setup
and #teardown
methods of your TestCase.
1 2 3 4 5 6 7 8 9 | class ExampleTest < ActiveSupport::TestCase setup do # ... end teardown do # ... end end |