Skip to content

Instantly share code, notes, and snippets.

@ordinz
Created September 3, 2013 15:37

Revisions

  1. @lukelove lukelove created this gist Sep 3, 2013.
    34 changes: 34 additions & 0 deletions gistfile1.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,34 @@
    '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'


    });