method

run

rails latest stable - Class: ActiveSupport::Testing::SetupAndTeardown::ForMiniTest

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.2.13) is shown here.

run(runner)
public

No documentation available.

# File activesupport/lib/active_support/testing/setup_and_teardown.rb, line 32
        def run(runner)
          result = '.'
          begin
            run_callbacks :setup do
              result = super
            end
          rescue *PASSTHROUGH_EXCEPTIONS => e
            raise e
          rescue Exception => e
            result = runner.puke(self.class, method_name, e)
          ensure
            begin
              run_callbacks :teardown
            rescue *PASSTHROUGH_EXCEPTIONS => e
              raise e
            rescue Exception => e
              result = runner.puke(self.class, method_name, e)
            end
          end
          result
        end