I'm working on my first app since I installed Rails 5. When I ran my specs for controller actions, I got the warning message below even though all my tests were passing.
[Devise] including `Devise::TestHelpers` is deprecated and will be removed from Devise.
For controller tests, please include `Devise::Test::ControllerHelpers` instead.
So in spec/rails_helper.rb I change this line:
config.include Devise::TestHelpers, type: :controller
to
config.include Devise::Test::ControllerHelpers
This change made the warning go away, but now the specs for models are failing. (They were passing before the change.) How should I fix this? Thanks!
Aucun commentaire:
Enregistrer un commentaire