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


21
22
23
# File 'lib/active_support/testing/setup_and_teardown.rb', line 21

def setup(*args, &block)
  set_callback(:setup, :before, *args, &block)
end

#teardown(*args, &block) ⇒ Object


25
26
27
# File 'lib/active_support/testing/setup_and_teardown.rb', line 25

def teardown(*args, &block)
  set_callback(:teardown, :after, *args, &block)
end