mercredi 21 janvier 2015

Testing Application Controller - Rails

How should I test this method on my ApplicationController:



def success
render nothing: true, status :ok
end


I've tried using controller.call(:success), but it returns an error. Any ideas ?


Additional Info: I'm using rspec


Aucun commentaire:

Enregistrer un commentaire