Unit test model logic

Discussion

Unit testing model logic is straight forward. Require the file you want to test. Make sure the code to test is exported using Module.exports & away you go!

Demo

The code for these tests are in /test/examples/modellogic_unit_test.coffee