Discovery Tests vs Unit Tests
I don’t do Unit Tests, instead I do Discovery Tests (thanks to Justin Searls for the distinction). Coupled with the use of the Command pattern in my Rails apps, this makes my tests and code much simpler: http://theartandscienceofruby.com/2015/07/16/what-is-a-discovery-test/
(The Command is easily testable and pulls the business logic out of ActiveRecord models, making them a persistence only layer)
Post a comment