Used this of parent in hopes of getting correct challenge id

This commit is contained in:
NotGonnaGitUs 2015-05-04 18:27:43 +05:30
parent 168d72fb0a
commit fef2c834c9

View file

@ -506,6 +506,7 @@ describe "API", ->
done() done()
it "User deletes a challenge with prize and gets refund", (done) -> it "User deletes a challenge with prize and gets refund", (done) ->
itThis = this
request.del(baseURL + "/challenges/" + challenge._id).end (res) -> request.del(baseURL + "/challenges/" + challenge._id).end (res) ->
User.findById _id, (err, user) -> User.findById _id, (err, user) ->
expect(user.balance).to.be 8 expect(user.balance).to.be 8