From fef2c834c93d7a986d36b7989a9eec32d96b8fec Mon Sep 17 00:00:00 2001 From: NotGonnaGitUs Date: Mon, 4 May 2015 18:27:43 +0530 Subject: [PATCH] Used this of parent in hopes of getting correct challenge id --- test/api.mocha.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/test/api.mocha.coffee b/test/api.mocha.coffee index 969435d15a..c7e64ff025 100644 --- a/test/api.mocha.coffee +++ b/test/api.mocha.coffee @@ -506,6 +506,7 @@ describe "API", -> done() it "User deletes a challenge with prize and gets refund", (done) -> + itThis = this request.del(baseURL + "/challenges/" + challenge._id).end (res) -> User.findById _id, (err, user) -> expect(user.balance).to.be 8