29 Sep '12, 8pm

Automatically reload the browser for Javascript tests

September 29, 2012 Tagged: backbone coffescript guard jasmine javascript testing howto recipe Comments (View) Automatically Reload the Browser for Javascript Tests Fast tests mean a fast feedback loop when doing TDD. Let’s make our tests fast with Guard . A Jasmine spec in CoffeeScript : describe 'A suite', -> it 'contains spec with an expectation', -> expect(true).toBe(true) Gemfile: source 'https://rubygems.org' gem 'jasmine' gem 'guard' gem 'guard-coffeescript' gem 'guard-livereload' Guardfile: guard :coffeescript, output: 'javascripts' do watch(%r{^src/(.*)\.coffee}) end guard :coffeescript, output: 'spec/javascripts' do watch(%r{^spec/src/(.*)\.coffee}) end guard 'livereload' do watch(%r{^spec/javascripts/.*/(.*)\.js}) watch(%r{^spec/javascripts/(.*)\.js}) watch(%r{^javascripts/.*/(.*)\.js}) watch(%r{^javascripts/(.*)\.js}) end This compiles CoffeeScript, watches our ...

Full article: http://robots.thoughtbot.com/post/32518624481/automatical...

Tweets

Use Guard and Jasmine to make CoffeeScript test...

robots.thoughtbot.com 29 Sep '12, 1pm

So this is all awesome, but Jasmine doesn’t run on the command line (well, it does, but I started off wanting to use the b...

Don’t Repeat Your Ruby Constants in Javascript

robots.thoughtbot.com 27 Sep '12, 3pm

September 27, 2012 Tagged: erb javascript preprocessing rails magic numbers don't repeat yourself Comments (View) Don’t Re...

Paraplegic Patient Tests a Medical Exoskeleton

spectrum.ieee.org 28 Sep '12, 6pm

This segment is part of the IEEE Spectrum series “The New Medicine ” Susan Hassler: The word exoskeleton may make you thin...