[rspec-users] Problems with array mock

David Chelimsky dchelimsky at gmail.com
Mon Aug 6 14:57:48 EDT 2007


On 8/6/07, aslak hellesoy <aslak.hellesoy at gmail.com> wrote:
> @curr_odontogram.photos.should_receive(:[]).with(1).and_return(@photo)
>
> Aslak

D'oh! Of course - that should do it.


More information about the rspec-users mailing list