On Oct 27, 2009, at 3:51 pm, drewB wrote:
As you can see, I am not mocking current_user.objectives.create so I
have to look at assigns[:objective] to test that things are working.
How would I go about mocking it?
Hi Drew
A virtually identical question was asked recently. Hopefully the
replies to that will help:
http://rubyforge.org/pipermail/rspec-users/2009-October/015612.html
Ashley
--
http://www.patchspace.co.uk/
http://www.linkedin.com/in/ashleymoran
http://aviewfromafar.net/
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users