Skip to content

Instantly share code, notes, and snippets.

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

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