Hey all, recently I've been trying to introduce tests to an app I'm working on in Rails 6 which uses MiniTest.
After going through a few guides I was still struggling and I think it's not because of the syntax of the methods available for testing but because I don't quite get the reasoning behind figuring out what to test and what is the best to way to do it.
Could someone give me an example of their thinking when they need to write tests for a method/something else? I would be very grateful! 🙇🏻♂️