If you're using rspec + pass a relative path to a rails template (e.g. accounts/new.html.rb) then the fixture file will be automatically rendered from the template.
Just run "spec spec/javascripts/accounts_new_spec.rb" (after setting up what data you want for the template).
It's only available for rspec since it uses rspec's view render mechanism.
NOTE: For details see commit message in link below
I've ported a gist (http://gist.github.com/148947) from Jonas Nicklas into the blue_ridge + javascript_spec generators.
http://github.com/drnic/blue-ridge/commit/0d425952e40fec35b48e6d2a29c00f92c95b2247 (subsequent commit has patch to README for contributors)
If you're using rspec + pass a relative path to a rails template (e.g. accounts/new.html.rb) then the fixture file will be automatically rendered from the template.
Just run "spec spec/javascripts/accounts_new_spec.rb" (after setting up what data you want for the template).
It's only available for rspec since it uses rspec's view render mechanism.