4 def should_receive(sym, opts={}, &block)
5 __mock_proxy.add_message_expectation(opts[:expected_from] || caller(1)[0], sym.to_sym, opts, &block)
8 def should_not_receive(sym, &block)
9 __mock_proxy.add_negative_message_expectation(caller(1)[0], sym.to_sym, &block)
12 def stub!(sym, opts={})
13 __mock_proxy.add_stub(caller(1)[0], sym.to_sym, opts)
16 def received_message?(sym, *args, &block) #:nodoc:
17 __mock_proxy.received_message?(sym.to_sym, *args, &block)
20 def rspec_verify #:nodoc:
24 def rspec_reset #:nodoc:
32 @mock_proxy ||= Proxy.new(self, @name, @options)
34 @mock_proxy ||= Proxy.new(self, self.class.name)