search for: user_1015

Displaying 1 result from an estimated 1 matches for "user_1015".

Did you mean: user_1010
2009 Oct 19
0
Help with controllers specs
...in? && current_user.role == Role.find(Role::ADMINISTRATOR) end *************************************************** The error I have is Spec::Mocks::MockExpectationError in ''UsersController GET edit authenticated user should find user and return object'' Mock ''User_1015'' received unexpected message :role with (no args) How should I verify the method is_admin? Thank you EM -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20091019/69c9fd8f/attachment.html>