Skip to content

Instantly share code, notes, and snippets.

@spacesuitdiver
Created November 3, 2015 18:21
Show Gist options
  • Save spacesuitdiver/9a66a82d0dccf991771b to your computer and use it in GitHub Desktop.
Save spacesuitdiver/9a66a82d0dccf991771b to your computer and use it in GitHub Desktop.
1) UserController GET /users should return a collection:
Uncaught AssertionError: expected [ Array(2) ] to deeply equal [ Array(2) ]
+ expected - actual
[
{
"createdAt": "2015-10-29T23:22:13.254Z"
+ "email": "[email protected]"
+ "first_name": "Admin"
+ "id": 1
+ "last_name": "User"
+ "role": "admin"
+ }
+ {
+ "createdAt": "2015-10-29T23:22:13.254Z"
"email": "[email protected]"
"first_name": "Test"
"id": 2
"last_name": "User"
"role": "user"
}
- {
- "createdAt": "2015-10-29T23:22:13.254Z"
- "email": "[email protected]"
- "first_name": "Admin"
- "id": 1
- "last_name": "User"
- "role": "admin"
- }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment