MiniTest has evolved significantly since this tutorial was created. There are changes in configuration, and to help clarify the differences between the 3 main test frameworks I wrote a guide that examines their specific characteristics.
Here is a link to Ruby Reflections where you can find configuration for Rails 4.1 Test::Unit, MiniTest, Rspec, and combined with fixtures or factories. Pattern Objects, mocking, stubbing, and debugging hints are also covered.
Database cleaner is also explained, when it is necessary and when it is not.
Another great tutorial by Ryan!
MiniTest has evolved significantly since this tutorial was created. There are changes in configuration, and to help clarify the differences between the 3 main test frameworks I wrote a guide that examines their specific characteristics.
Here is a link to Ruby Reflections where you can find configuration for Rails 4.1 Test::Unit, MiniTest, Rspec, and combined with fixtures or factories. Pattern Objects, mocking, stubbing, and debugging hints are also covered.
Database cleaner is also explained, when it is necessary and when it is not.