Chore: Added tests for contacts_controller (#509)

- Tests for contacts controller
Addresses:  #37
This commit is contained in:
Tim Lange
2020-02-17 12:38:29 +01:00
committed by GitHub
parent fc23a10a99
commit 60547b9fb3
5 changed files with 130 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ json.payload do
json.name contact.name
json.email contact.email
json.phone_number contact.phone_number
json.thumbnail contact.avatar.profile_thumb.url
json.thumbnail contact.avatar_url
json.additional_attributes contact.additional_attributes
end
end

View File

@@ -3,6 +3,6 @@ json.payload do
json.name @contact.name
json.email @contact.email
json.phone_number @contact.phone_number
json.thumbnail @contact.avatar.thumb.url
json.thumbnail @contact.avatar_url
json.additional_attributes @contact.additional_attributes
end