[Rspec-users] and_return broken when using arrays
Micah Martin
micah at 8thlight.com
Fri Oct 27 16:34:11 EDT 2006
m = mock("blah")
m.should_receive(:foo).and_return([1, 2, 3])
When foo() is called on the mock it returns the first elements of the
array, 1. Shouldn't it return the whole array?
Micah Martin
8th Light, Inc.
www.8thlight.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20061027/60d8fce9/attachment.html
More information about the Rspec-users
mailing list