asm-products/boxychat — pull request #10 by jxm262 (2014-12-29 15:45:34+00:00)
Title: Develop unit tests

Couple quick examples. I'm actually not sure I like the architecture of naming the controller.actions functions a string with spaces and special characters. eg 'get /' But you can still unit test this way if you want.

The only consideration is I would probably inject the model dependency so you could test it more easily. Or at least refactor it differently so you can easily stub it for testing.