[rspec-users] mocking methods in the controller.

Daniel N has.sox at gmail.com
Thu Jul 5 09:28:28 EDT 2007


Hi,

I'm very new to rspec so please be patient with me.

I've tried to take some of my tests out of the controller specs to check for
things that are rendered.

This has not worked so well, since my views have the controller method

current_user

in quite a few places.

Is there any way that I can define this so that my views will be executed?
Will this same thing occur for all helper methods that are definied in the
controller?

Cheers
Daniel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20070705/1a8e6a3a/attachment.html 


More information about the rspec-users mailing list