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
build_expectation
find_matching_method_stub
has_negative_expectation?
invoke_expectation
message_received
new
null_object?
ok_to_invoke_stub?
raise_unexpected_message_args_error
raise_unexpected_message_error
received_message?
record_almost_matching_expectation
record_message_received
record_stub
remove_stub
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={}, &implementation)
as_null_object
()
build_expectation
(expected_from, sym, opts, &block)
find_matching_method_stub
(sym, *args)
has_negative_expectation?
(sym)
invoke_expectation
(expectation, *args, &block)
message_received
(sym, *args, &block)
null_object?
()
ok_to_invoke_stub?
(stub, expectation)
raise_unexpected_message_args_error
(expectation, *args)
raise_unexpected_message_error
(sym, *args)
received_message?
(sym, *args, &block)
record_almost_matching_expectation
(expectation, sym, *args, &block)
record_message_received
(sym, args, block)
record_stub
(stub, sym, args, &block)
remove_stub
(message)
reset
()
[Validate]