If you are using methods like
user_signed_in? inside your controllers and receiving errors like those when running MiniTest:
ActionController::TestCase and include the
Devise::TestHelpers putting this at the end of your
1 2 3
No more errors!
tip: you can use the
sign_in helper provided by Devise to use inside your controller tests.