Hi. Very nice post. I have a doubt. In the test for partial user_details.rb all test cases for the functionality inside it are present. Now when writing test for user.rb what should be tested ?

  1. Everything inside user_details.rb and user.rb OR
  2. Test everything insideuser_details.rb and stub/mock user.rb

I thing option 2 makes sense but I would like to know your opinion for clarity.

Thanks.

Open Source | DevOps | Infrastructure | Backend | Ployglot Programmer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store