There are lots of things I take for granted when I was learning how to write code. For example, going with the solution that gets the job done first without thinking about the number of database hits, N+1 queries, one method/function doing many things at once not to even talk 1/3
about running tests that cover at least 95% of written code. I looked at some of the hobby code I wrote 5-6 years ago and I could only laugh at my past self. I did not even bother to try and refactor. The lesson learnt in all this I guess is that we should always ensure 2/3
When you use devise gem for your authentication, I believe you should not have to write a test for the operations that devise manages like /user/sign_in or /sign_out etc. You should trust the gem to have been tested for those right? #rubyonrails#rubyprogramming#devise