method
new
new(target, name=nil, options={})
public
Hide source
# File lib/spec/mocks/proxy.rb, line 18 def initialize(target, name=nil, options={}) @target = target @name = name @error_generator = ErrorGenerator.new target, name @expectation_ordering = OrderGroup.new @error_generator @expectations = [] @messages_received = [] @stubs = [] @proxied_methods = [] @options = options ? DEFAULT_OPTIONS.dup.merge(options) : DEFAULT_OPTIONS end