Created
April 17, 2015 18:16
-
-
Save peterzawistowicz/c95f207302adfdd69f4f 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
frisby.create('POST enroll duplicate user ') | |
.post(tc.url + '/user/enroll', | |
{ 'firstName' : TEST_USERS[0].fn, | |
'lastName' : TEST_USERS[0].ln, | |
'email' : TEST_USERS[0].email, | |
'password' : TEST_USERS[0].pwd }) | |
.expectStatus(400) | |
.expectHeader('Content-Type', 'application/json; charset=utf-8') | |
.expectJSON({'error' : 'Account with that email already exists. Please choose another email.'}) | |
.toss() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment