RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

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

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in