Class
Spec::Mocks::Proxy
In:
lib/spec/mocks/proxy.rb
Parent:
Object
Methods
add_message_expectation
add_negative_message_expectation
add_stub
allow_message_expectations_on_nil
as_null_object
has_negative_expectation?
message_received
new
null_object?
raise_unexpected_message_args_error
raise_unexpected_message_error
received_message?
reset
Constants
DEFAULT_OPTIONS
=
{ :null_object => false, }
Public Class methods
allow_message_expectations_on_nil
()
new
(target, name=nil, options={})
Public Instance methods
add_message_expectation
(expected_from, sym, opts={}, &block)
add_negative_message_expectation
(expected_from, sym, &block)
add_stub
(expected_from, sym, opts={})
as_null_object
()
has_negative_expectation?
(sym)
message_received
(sym, *args, &block)
null_object?
()
raise_unexpected_message_args_error
(expectation, *args)
raise_unexpected_message_error
(sym, *args)
received_message?
(sym, *args, &block)
reset
()
[Validate]