Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
describe "App.request", ->
deferred = null
beforeEach ->
sinon.stub(App, "request").yieldsTo('done', {res: "ok"})
afterEach ->
it "res should be 'ok'", (done) ->
App.request("foo:bar:baz").done (obj) ->
expect(obj.res) "ok"

This comment has been minimized.

Copy link
Owner Author

@kyanny kyanny commented Jul 16, 2014

request expected to yield to 'done', but no object with such a property was passed. Received [foo:bar:baz]

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