[rspec-users] Mocking problem in controller
ashley.moran at patchspace.co.uk
Tue Oct 27 14:16:15 EDT 2009
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?
A virtually identical question was asked recently. Hopefully the
replies to that will help:
More information about the rspec-users