Module: ActiveSupport::Testing::SetupAndTeardown::ClassMethods

Defined in:
activesupport/lib/active_support/testing/setup_and_teardown.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) setup(*args, &block)



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

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

- (Object) teardown(*args, &block)



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

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