[rspec-users] Problems mocking controller helpers with the last version.

Craig Demyanovich cdemyanovich at gmail.com
Mon Sep 29 07:23:36 EDT 2008

I can't tell from your post whether you meant to type an instance or local
variable when noting that you "could check the role of the user in the view
with current_user.role," since you mentioned an instance variable earlier.

assigns[:current_user] = ... sets up an instance variable, @current_user,
for use in your view. You should be using @current_user instead of

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20080929/f4b84a5f/attachment.html>

More information about the rspec-users mailing list