Skip to content

Instantly share code, notes, and snippets.

View kurisu's full-sized avatar

Laurentius von Liechti kurisu

View GitHub Profile
@kurisu
kurisu / automatic_fixture_generation.rb
Created May 12, 2011 19:25
Automatic DOM Fixture Generation in Jasmine
<<-README
Put this here /spec/javascripts/support/jasmine_extensions
The observed and output folders are set up for Rails, but there's no reason
you couldn't change them to work with any DOM-generating back-end.
Also, we found it helpful to clean the html we wrote to these fixtures by
remove script tags and changing the body to a div, so it fit nicely into the
jasmine_content div.