vendor/gems/flexmock-0.8.5/lib/flexmock/partial_mock.rb
def should_receive(*args)
      ContainerHelper.parse_should_args(@mock, args) do |sym|
        unless @methods_proxied.include?(sym)
          hide_existing_method(sym)
        end
        ex = @mock.should_receive(sym)
        ex.mock = self
        ex
      end
    end
# :call-seq:
#    should_receive(:method_name)
#    should_receive(:method1, method2, ...)
#    should_receive(:meth1 => result1, :meth2 => result2, ...)
#
# Declare that the partial mock should receive a message with the given
# name.
#
# If more than one method name is given, then the mock object should
# expect to receive all the listed melthods.  If a hash of method
# name/value pairs is given, then the each method will return the
# associated result.  Any expectations applied to the result of
# +should_receive+ will be applied to all the methods defined in the
# argument list.
#
# An expectation object for the method name is returned as the result of
# this method.  Further expectation constraints can be added by chaining
# to the result.
#
# See Expectation for a list of declarators that can be used.


Declare that the partial mock should receive a message with the given
name.

If more than one method name is given, then the mock object should
expect to receive all the listed melthods.  If a hash of method
name/value pairs is given, then the each method will return the
associated result.  Any expectations applied to the result of
+should_receive+ will be applied to all the methods defined in the
argument list.

An expectation object for the method name is returned as the result of
this method.  Further expectation constraints can be added by chaining
to the result.

See Expectation for a list of declarators that can be used.
Declare that the partial mock should receive a message with the given name . If more than one method name is given then the mock object should expect to receive all the listed melthods . If a hash of method name / value pairs is given then the each method will return the associated result . Any expectations applied to the result of + should_receive + will be applied to all the methods defined in the argument list . An expectation object for the method name is returned as the result of this method . Further expectation constraints can be added by chaining to the result . See Expectation for a list of declarators that can be used .
def should_receive(*args)
      ContainerHelper.parse_should_args(@mock, args) do |sym|
        unless @methods_proxied.include?(sym)
          hide_existing_method(sym)
        end
        ex = @mock.should_receive(sym)
        ex.mock = self
        ex
      end
    end
def should_receive ( * args ) ContainerHelper . parse_should_args ( @mock , args ) do | sym | unless @methods_proxied . include? ( sym ) hide_existing_method ( sym ) end ex = @mock . should_receive ( sym ) ex . mock = self ex end end
:call-seq:
should_receive(:method_name)
should_receive(:method1, method2, ...)
should_receive(:meth1 => result1, :meth2 => result2, ...)
: call - seq : should_receive ( : method_name ) should_receive ( : method1 method2 ... ) should_receive ( : meth1 = > result1 : meth2 = > result2 ... )
args