If you are getting this error:
ActionView::Template::Error: undefined method `authenticate?' for nil:NilClass
in your call to Devise’s user_signed_in? or similar, you probably forgot to add this:
class ActionController::TestCase include Devise::TestHelpers end
at the bottom of the test_helper.rb file. Not that that would ever happen to me…
Leave a Reply