velesin/jasmine-jquery — pull request #91 by bunnymatic (2012-09-01 19:48:25+00:00)
Title: Add JSON Fixtures

Hey there
I recently ran into an issue where we had a large tree of data that we needed in our specs. Instead of adding a huge pile of js data at the top of my specs, I decided to mimic your Fixture setup to load JSON data from files and give that data to the specs.

I've included that functionality here under jasmine.JSONFixtures. The merge has included new tests, README update and the code to handle JSON data import. One primary difference here is that the fixture cache is not used nearly as heavily. Because one may modify data in the fixture in specs, I wanted to be a bit more agressive about making sure you get clean data every time. The spec writer will still have to call loadFixtures(fixtureUrl) for each spec, but this can be done easily in a beforeEach so i think it works out ok.

I'd love to see this merged into jasmine-jquery - which I use in all my projects.

Cheers
Jon Rogers