Methods

Class/Module Index [+]

Quicksearch

ActiveSupport::Testing::SetupAndTeardown

Public Class Methods

included(base) click to toggle source
# 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

[Validate]

Generated with the Darkfish Rdoc Generator 2.