class MiniTest::Mock
def expect(name, retval, args=[])
def expect(name, retval, args=[]) raise ArgumentError, "args must be an array" unless Array === args @expected_calls[name] << { :retval => retval, :args => args } self end
def expect(name, retval, args=[]) raise ArgumentError, "args must be an array" unless Array === args @expected_calls[name] << { :retval => retval, :args => args } self end