[rspec-users] how can this pass?

Mark Wilden mark at mwilden.com
Mon Feb 9 00:34:01 EST 2009


On Sun, Feb 8, 2009 at 6:09 PM, Matías Flores <mflores at atlanware.com> wrote:
>
> You can find more info at http://rspec.info/documentation/mocks/message_expectations.html.
>

On that page, I found this example of using a computed return value
with an expectation:

my_mock.should_receive(:msg).with(:numeric, :numeric) once.and_return
{|a, b| a + b}

I'm not familiar with :numeric. Does it mean what it looks like it means?

///ark


More information about the rspec-users mailing list