Class
RSpec::Mocks::MethodDouble
In:
lib/rspec/mocks/method_double.rb
Parent:
Hash
Methods
add_expectation
add_negative_expectation
add_stub
clear
configure_method
define_proxy_method
expectations
new
obfuscate
object_responds_to?
object_singleton_class
proxy_for_nil_class?
raise_method_not_stubbed_error
remove_stub
reset
reset_nil_expectations_warning
restore_original_method
stash_original_method
stashed_method_name
stubs
verify
visibility
warn_if_nil_class
Attributes
method_name
[R]
Public Class methods
new
(object, method_name, proxy)
Public Instance methods
add_expectation
(error_generator, expectation_ordering, expected_from, opts, &block)
add_negative_expectation
(error_generator, expectation_ordering, expected_from, &implementation)
add_stub
(error_generator, expectation_ordering, expected_from, opts={}, &implementation)
clear
()
configure_method
()
define_proxy_method
()
expectations
()
obfuscate
(method_name)
object_responds_to?
(method_name)
object_singleton_class
()
proxy_for_nil_class?
()
raise_method_not_stubbed_error
()
remove_stub
()
reset
()
reset_nil_expectations_warning
()
restore_original_method
()
stash_original_method
()
stashed_method_name
()
stubs
()
verify
()
visibility
()
warn_if_nil_class
()
[Validate]