KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Found similar questions but surprisingly none, that I've found, give a simple answer... Trying to stub a helper method in my controller spec; not quite sure what object would need to be doubled? Controller calls this method: #app/helpers/sessions_helper.rb def signed_in? current_user.present? end I'd like to stub it in spec to return true/false.
Tags (comma-separated)
Save Edits
Cancel