-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eddd1e1
commit 37e2ab4
Showing
2 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,15 +21,15 @@ Feature: Create administrators | |
Then the response status code should be 201 | ||
And the response should be in JSON | ||
And the header "Content-Type" should be equal to "application/json; charset=utf-8" | ||
And the JSON should be equal to: | ||
And the JSON should be like: | ||
""" | ||
{ | ||
"username": "admin3", | ||
"pass": "*****", | ||
"email": "[email protected]", | ||
"name": "Name", | ||
"lastname": "Last name", | ||
"id": 3 | ||
"id": "match:type(integer)" | ||
} | ||
""" | ||
|
||
|
@@ -40,14 +40,14 @@ Feature: Create administrators | |
Then the response status code should be 200 | ||
And the response should be in JSON | ||
And the header "Content-Type" should be equal to "application/json; charset=utf-8" | ||
And the JSON should be equal to: | ||
And the JSON should be like: | ||
""" | ||
{ | ||
"username": "admin3", | ||
"pass": "*****", | ||
"email": "[email protected]", | ||
"name": "Name", | ||
"lastname": "Last name", | ||
"id": 3 | ||
"id": "match:regexp(/[0-9]+/)" | ||
} | ||
""" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,14 +37,14 @@ | |
Then the response status code should be 200 | ||
And the response should be in JSON | ||
And the header "Content-Type" should be equal to "application/json; charset=utf-8" | ||
And the JSON should be equal to: | ||
And the JSON should be like: | ||
""" | ||
{ | ||
"username": "admin_updated", | ||
"pass": "*****", | ||
"email": "[email protected]", | ||
"name": "Name_updated", | ||
"lastname": "Last name updated", | ||
"id": 2 | ||
"id": "match:type(number)" | ||
} | ||
""" |