backbone.modelbinding icon indicating copy to clipboard operation
backbone.modelbinding copied to clipboard

Phoenix

Open searls opened this issue 13 years ago • 2 comments

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, 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. :-)

searls avatar Feb 24 '12 04:02 searls

other than the CS - which I just can seem to like, for whatever reason - i like the changes. i've known about the headless webkit and i use guard for a lot of other projects... just can't be bothered to set those up most of the time :P

i wasn't aware of jasmine-given, though. definitely going to start using that. i'd been thinking about wanting something like that, but hadn't bothered to look in to it.

mxriverlynn avatar Feb 24 '12 12:02 mxriverlynn

Awesome! I'll try to keep an eye on your repo as I have time. Let me know if you run into any issues.

I also have jasmine-headless-webkit running on travis-ci on most of my projects, so you could

check out an example .travis-yml:

https://github.com/searls/jasmine-fixture/blob/master/.travis.yml

On Feb 24, 2012, at 7:47, Derick Bailey [email protected] wrote:

other than the CS - which I just can seem to like, for whatever reason - i like the changes. i've known about the headless webkit and i use guard for a lot of other projects... just can't be bothered to set those up most of the time :P

i wasn't aware of jasmine-given, though. definitely going to start using that. i'd been thinking about wanting something like that, but hadn't bothered to look in to it.


Reply to this email directly or view it on GitHub: https://github.com/derickbailey/backbone.modelbinding/pull/70#issuecomment-4156297

searls avatar Feb 24 '12 12:02 searls