mercredi 10 février 2016

How can I stub out a method that was defined in a parent controller?

I defined a little method named auth_user in the ApplicationController of my app. I set it as a before_action in my SessionController.

How can I stub out that auth_user method from the SessionController test?

Aucun commentaire:

Enregistrer un commentaire