Methods

Class/Module Index [+]

Quicksearch

ActiveSupport::Testing::Isolation::TestUnit

Public Instance Methods

run(result) click to toggle source
# File D:/Develope/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activesupport-3.0.9/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

[Validate]

Generated with the Darkfish Rdoc Generator 2.