Module: ActiveSupport::Testing::SetupAndTeardown::ClassMethods
- Defined in:
- lib/active_support/testing/setup_and_teardown.rb
Instance Method Summary collapse
Instance Method Details
#setup(*args, &block) ⇒ Object
15 16 17 |
# File 'lib/active_support/testing/setup_and_teardown.rb', line 15 def setup(*args, &block) set_callback(:setup, :before, *args, &block) end |
#teardown(*args, &block) ⇒ Object
19 20 21 |
# File 'lib/active_support/testing/setup_and_teardown.rb', line 19 def teardown(*args, &block) set_callback(:teardown, :after, *args, &block) end |