Created
November 29, 2014 01:22
-
-
Save jrgleason/850e248188cf2eaedd05 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cf.save().success(function (cf) { | |
request(app) | |
.post('/crowdfunding/sendConfirmationEmail') | |
.send({ | |
'id': cf.id, | |
'text': 'test text' | |
}) | |
.end(function (err, res) { | |
assert.equal('PENDING', cf.state); | |
t.rollback(); | |
done(); | |
}); | |
}).error(function () { | |
//forget how but fail | |
t.rollback(); | |
done(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment