Skip to content

Conversation

@togakangaroo
Copy link

Especially when writing coffeescript tests it is common to use this for variables in scope

A very minor change to allow this style

describe "a feature", ->
    async.beforeEach -> 
        @mockFoo = jasmine.createSpy()
        @sut = blah(mockFoo)

    it "calls foo", -> (expect @mockFoo).toHaveBeenCalled()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant