Methods

Class/Module Index [+]

Quicksearch

ActiveSupport::Testing::SetupAndTeardown::ForMiniTest

Public Instance Methods

run(runner) click to toggle source
# File lib/active_support/testing/setup_and_teardown.rb, line 31
def run(runner)
  result = '.'
  begin
    _run_setup_callbacks do
      result = super
    end
  rescue Exception => e
    result = runner.puke(self.class, method_name, e)
  ensure
    begin
      _run_teardown_callbacks
    rescue Exception => e
      result = runner.puke(self.class, method_name, e)
    end
  end
  result
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.