Skip to content

Instantly share code, notes, and snippets.

@dsci
Created November 2, 2011 12:07
Show Gist options
  • Save dsci/1333472 to your computer and use it in GitHub Desktop.
Save dsci/1333472 to your computer and use it in GitHub Desktop.
Asynchronous testing with CoffeeScript and Jasmine
describe 'convert', ->
sampleCollection = Ext.create('my.store.Shoes')
answer = null
callback = (records,operation,success) ->
answer = records
return
sampleCollection.load(callback)
waitsFor ->
answer
runs ->
expect(answer).toHasThisOrThat()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment