On 1/10/08, Rick DeNatale <[EMAIL PROTECTED]> wrote:
>
> So why not
>
> songs = [song1, song2, song3]
> album.stub!(:songs).and_return(songs)
> songs.stub!(:streamable).and_return([song1, song2])


Oh, of course. Thank you.

I think my mind was in a rut of "must use mock or mock_model" and I didn't
think to just stub a method call on an existing array.

Chris
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to