Skip to content

Instantly share code, notes, and snippets.

@shime
Created January 16, 2014 22:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shime/8464734 to your computer and use it in GitHub Desktop.
Save shime/8464734 to your computer and use it in GitHub Desktop.
testing Ember.RSVP with QUnit
test "the Ember.RSVP.Promise works", ->
promise = new Ember.RSVP.Promise((resolve, reject) ->
Ember.run(null, resolve, "value")
)
Ember.run =>
promise.then (actual) ->
equal(actual, 'value', 'promise resolved with "hello"')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment