Created
June 6, 2011 21:07
-
-
Save johnbintz/1011110 to your computer and use it in GitHub Desktop.
Modular extensions to Jasmine specs using CoffeeScript & Underscore
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe 'A thing', -> | |
it 'should make an other thing', -> | |
this.utilityFunction("test") | |
expect(this.otherThing).toEqual("test") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MySpecHelper = { | |
utilityFunction: (thing) -> | |
this.otherThing = thing | |
} | |
_.extend(jasmine.Spec.prototype, MySpecHelper) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment