A collection of functions that help testing Requirejs with Jasmine.
Download jasmine-requirejs.js from here and include it in your Jasmine's test runner file (or add it to jasmine.tml file if you are using Ruby with jasmine-gem).
Defines a suite of requirejs module specifications. This wraps a Jasmine describe block inside a require statement so that all dependencies are fullfilled before each spec. The loaded module is available as this.Module. For example:
describeModule('app/modules/example.js', function() {
it("loads the module as this.Module", function() {
expect(this.Module).toBeDefined();
});
});