Created
July 15, 2011 14:34
-
-
Save searls/1084801 to your computer and use it in GitHub Desktop.
Here's why users are polluting "this" in Jasmine"
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 'chum', -> | |
chum=null | |
beforeEach -> chum = 'D.W. Frank' | |
it 'is chummy', -> | |
expect(chum).toBe('D.W. Frank') |
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 'chum', -> | |
beforeEach -> @chum = 'D.W. Frank' | |
it 'is chummy', -> | |
expect(@chum).toBe('D.W. Frank') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment