class ActiveSupport::Testing::ProxyTestResult

Public Class Methods

new(calls = []) click to toggle source
# File lib/active_support/testing/isolation.rb, line 15
def initialize(calls = [])
  @calls = calls
end

Public Instance Methods

__replay__(result) click to toggle source
# File lib/active_support/testing/isolation.rb, line 24
def __replay__(result)
  @calls.each do |name, args|
    result.send(name, *args)
  end
end
add_error(e) click to toggle source
# File lib/active_support/testing/isolation.rb, line 19
def add_error(e)
  e = Test::Unit::Error.new(e.test_name, RemoteError.new(e.exception))
  @calls << [:add_error, e]
end
marshal_dump() click to toggle source
# File lib/active_support/testing/isolation.rb, line 30
def marshal_dump
  @calls
end
marshal_load(calls) click to toggle source
# File lib/active_support/testing/isolation.rb, line 34
def marshal_load(calls)
  initialize(calls)
end
method_missing(name, *args) click to toggle source
# File lib/active_support/testing/isolation.rb, line 38
def method_missing(name, *args)
  @calls << [name, args]
end