jfirebaugh/konacha — pull request #42 by sandstrom (2012-06-04 18:39:03+00:00)
Title: Ability to toggle TDD-mode of mocha

I really like konacha, it's an excellent tool! However, I also like the tdd-style that mocha provides and it would be great if I could use them together.

This isn't a working implementation, but I thought I'd open a pull request to see if this could be accepted when it's working properly? (and also to get some help)

A few questions:
- My idea of toggling would be to change `runner|server.js` into `runner|server.js.erb`, and adding a config setting to Konacha where one can optionally choose 'tdd'. Does that sound like a good idea?
- When setting to TDD statically (see the first commit), `rake konacha:run` throws `undefined|0|ReferenceError: Can't find variable: beforeEach`. What could be the reason to this?