[rspec-users] Problems mocking controller helpers with the last version.
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...
More information about the rspec-users