Skip to content

Instantly share code, notes, and snippets.

@peterzawistowicz
Created April 17, 2015 18:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peterzawistowicz/c95f207302adfdd69f4f to your computer and use it in GitHub Desktop.
Save peterzawistowicz/c95f207302adfdd69f4f to your computer and use it in GitHub Desktop.
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