Skip to content

Instantly share code, notes, and snippets.

@ordinz
Created September 3, 2013 15:37
Show Gist options
  • Save ordinz/6425552 to your computer and use it in GitHub Desktop.
Save ordinz/6425552 to your computer and use it in GitHub Desktop.
'use strict';
describe('iFestivus Factories', function(){
describe('"Fest" Factory', function(){
beforeEach(
module('iFestivus')
);
it('should set the $rootscope.festival');
it('should get the slug-id from the <html data-slug=""> attribute');
it('should return a festival object');
describe("dependsOn()", function(){
it('should execute the callback, if the festival() is defined');
describe("dependsOn(), fesitval defined", function(){
it('should execute the callback');
});
describe("dependsOn(), fesitval undefined", function(){
it('should execute the callback');
it('should set the festival');
});
}); // end describe("dependsOn()"
}); // end describe('"Fest" Factory'
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment