instance method run

Ruby on Rails 3.0.20

Since v3.0.20 Last seen in v3.2.22.5

Available in: v3.0.20 v3.1.12 v3.2.22.5

Signature

run(result)

No documentation comment.

Parameters

result req
Source
# File activesupport/lib/active_support/testing/isolation.rb, line 56
        def run(result)
          _run_class_setup

          yield(Test::Unit::TestCase::STARTED, name)

          @_result = result

          serialized = run_in_isolation do |proxy|
            begin
              super(proxy) { }
            rescue Exception => e
              proxy.add_error(Test::Unit::Error.new(name, e))
            end
          end

          retval, proxy = Marshal.load(serialized)
          proxy.__replay__(@_result)

          yield(Test::Unit::TestCase::FINISHED, name)
          retval
        end

Defined in activesupport/lib/active_support/testing/isolation.rb line 56 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::Testing::Isolation::TestUnit

Type at least 2 characters to search.

↑↓ navigate · open · esc close