method
method_missing

method_missing(sym, *args, &block)
public
Hide source
# File lib/spec/mocks/mock.rb, line 25 def method_missing(sym, *args, &block) __mock_proxy.instance_eval {@messages_received << [sym, args, block]} begin return self if __mock_proxy.null_object? super(sym, *args, &block) rescue NameError __mock_proxy.raise_unexpected_message_error sym, *args end end