I was working on a very simple Rails API, using devise_token_auth and I need to authorize controller actions based on user roles.
(Although, this should work fine for regular ol’ devise)
It took me a long long time to finally decided to write tests. I’ll probably write about the thought process and why I think you should write tests later.
If you use Rails to build REST APIs, and you want the number of times the FE…