Shopify/batman-rails — Issue #18: Provide testing support
Author: jmacdonald
Created: 2012-02-06 13:25:11+00:00
State: open

Hi,

BatmanJS looks awesome, but there's no mention of testing BatmanJS apps themselves. Since this gem is already suggesting a structure for these apps relative to a Rails app, it should also include a _test_ directory alongside the _models/controllers/helpers_ directories. Also, creation of a Cakefile with a _test_ task should be generated at the root of the Rails app so that developers can simply run
```
cake test
```
to run all of the tests located in the aforementioned _test_ directory with some kind of sensible pass/fail output.

Providing a test framework skeleton out of the box would encourage people to write tests for their code, which is something that anyone writing CoffeeScript with BatmanJS should be doing.