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
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:
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