Skip to content

Minor change to allow using this for jasmine suite - #13

Open
togakangaroo wants to merge 1 commit into
mxriverlynn:masterfrom
togakangaroo:master
Open

Minor change to allow using this for jasmine suite#13
togakangaroo wants to merge 1 commit into
mxriverlynn:masterfrom
togakangaroo:master

Conversation

@togakangaroo

Copy link
Copy Markdown

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