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 20
def run(runner)
  result = '.'
  begin
    run_callbacks :setup
    result = super
  rescue Exception => e
    result = runner.puke(self.class, __name__, e)
  ensure
    begin
      run_callbacks :teardown, :enumerator => :reverse_each
    rescue Exception => e
      result = runner.puke(self.class, __name__, e)
    end
  end
  result
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.