Serialized users
This commit is contained in:
parent
27c86b0a5b
commit
d0fe04530e
3 changed files with 9 additions and 5 deletions
|
|
@ -11,7 +11,7 @@ class Api::V1::UsersControllerTest < ActionDispatch::IntegrationTest
|
|||
assert_response :success
|
||||
# Test to ensure response contains the correct email
|
||||
json_response = JSON.parse(self.response.body)
|
||||
assert_equal @user.email, json_response['email']
|
||||
assert_equal @user.email, json_response['data']['attributes']['email']
|
||||
end
|
||||
|
||||
#CREATE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue