I've been experimenting with utilizing the jasmine-ajax library for simulating ajax requests within grunt-contrib-jasmine, but it appears that jasmine is having trouble locating the library (indicating jasmine.Ajax is not defined).
This is an excerpt from my grunt file:
jasmine: {
test:{
src :[ '<%= watch.files %>'],
options: {
vendor: 'vendor/mock-ajax.js',
specs : ['specs/**/*spec.js'],
helpers : 'specs/helpers/*.js',
timeout : 10000
}
}
I obtained mock-ajax.js and placed it in a vendor directory. The issue arises during this part of the test:
beforeEach(function() {
jasmine.Ajax.install();
});