I have used pundit in authorization and have decorated my actions in the controller with authorize. I am using minitest/unit nor RSpec. Right after I applied the authorize key word in the actions, the testes started to fail with:
Expected response to be a <2xx: success> but, a <302: found> redirected to http://www.example.com/
a sample controller:
index
authorize User
end
end any help?
Aucun commentaire:
Enregistrer un commentaire