Re: [rspec-users] Problems with array mock

2007-08-07 Thread Don Petersen
Have a look at this: http://pastie.textmate.org/85317 That should work out. Don On Aug 6, 2007, at 2:04 PM, Gaston Ramos wrote: El lun, 06 de ago de 2007, a las 11:52:28 -0500, David Chelimsky dijo: On 8/6/07, Gaston Ramos [EMAIL PROTECTED] wrote: Hi everyone, I'm trying this in my

Re: [rspec-users] Problems with array mock

2007-08-06 Thread Gaston Ramos
El lun, 06 de ago de 2007, a las 11:52:28 -0500, David Chelimsky dijo: On 8/6/07, Gaston Ramos [EMAIL PROTECTED] wrote: Hi everyone, I'm trying this in my helper spec and it didn't work: @curr_odontogram.should_receive('photos[1]').and_return(@photo) and the error is:

Re: [rspec-users] Problems with array mock

2007-08-06 Thread David Chelimsky
On 8/6/07, aslak hellesoy [EMAIL PROTECTED] wrote: @curr_odontogram.photos.should_receive(:[]).with(1).and_return(@photo) Aslak D'oh! Of course - that should do it. ___ rspec-users mailing list rspec-users@rubyforge.org