searls/jasmine-rails — pull request #40 by doryphores (2013-05-24 16:21:42+00:00)
Title: An idea for HTML fixtures 

The idea is simple: load fixture files from the `fixtures` directory and make them available to specs by adding them to a global fixture hash.

- Enable fixtures by adding a `fixture_dir` setting to the jasmine.yml file.
- A file named foo.html will be available in specs via `jasmineFixtures['foo']`.
- Fixture files can also be organised in subfolders so `foo/bar.html` can be accessed via `jasmineFixtures['foo/bar']`.

This removes the need for unsatisfactory ajax solutions or creating fixtures from scratch using jQuery. The solution is independent from jQuery so spec writers are free to do what they want with them and we could possibly add support for haml fixtures for example.

Comments? What do you think?