derickbailey/backbone.modelbinding — pull request #70 by searls (2012-02-24 04:15:33+00:00)
Title: Phoenix

Just wanted to share a different take on this jasmine spec that came to mind when you graciously tweeted it.

A few aspects:

1. Uses the *-given DSL, which I think helps encourage denser specs, since each activity really wants to fit in one line (and yet still make sense). This only looks clean in CoffeeScript, however, so...

2. I rewrote the spec CoffeeScript.Note that you'd definitely would want to pause before merging, since this will probably not work with the official jasmine gem as you have it configured. But good news, because...

3. To resolve that, I pulled in @johnbintz's excellent [jasmine-headless-webkit](http://johnbintz.github.com/jasmine-headless-webkit/), which includes CoffeeScript compilation and works from the existing jasmine.yml config. It also buys you...

4. guard support! So you can run `bundle exec guard` and your specs will re-run on file change; when you change just a spec file, only that spec will run.

I sure threw a bunch at you just to rewrite one lousy spec, but if you're interested, I'd happily help convert all of the existing specs over. :-)