method
new
1.1.4 -
Show latest stable
- Class:
Spec::Mocks::Proxy
new(target, name, options={})public
No documentation available.
# File lib/spec/mocks/proxy.rb, line 8
def initialize(target, name, 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