Module: ActiveSupport::Testing::SetupAndTeardown
- Included in:
- ActiveSupport::TestCase
- Defined in:
- lib/active_support/testing/setup_and_teardown.rb
Defined Under Namespace
Modules: ForClassicTestUnit, ForMiniTest
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/active_support/testing/setup_and_teardown.rb', line 6 def self.included(base) base.class_eval do include ActiveSupport::Callbacks define_callbacks :setup, :teardown if defined?(MiniTest::Assertions) && TestCase < MiniTest::Assertions include ForMiniTest else include ForClassicTestUnit end end end |