Rails - How do you dynamically call the request methods "get put destroy etc" at runtime in tests
- by adam
I'm always writing tests to check my controller restricts people from certain actions depending on their status i.e. logged in, admin? etc
Regardless of whether its a get to :index or a puts to :create the code is always the same. I'm trying to refactor this so that i have one method such as
…