Use the same serializer for all contact related actions

Also, rerun the response with an RFC4627 formatter
This commit is contained in:
Maciej Szlosarczyk 2018-11-01 23:06:27 +02:00
parent 2a7b6c1eb8
commit 94efbbbab0
No known key found for this signature in database
GPG key ID: 41D62D42D3B0D765
5 changed files with 146 additions and 105 deletions

View file

@ -1,7 +1,7 @@
require 'test_helper'
require 'serializers/registrant_api/domain'
class SerializersRegistrantApiDomainTest < ApplicationIntegrationTest
class SerializersRegistrantApiDomainTest < ActiveSupport::TestCase
def setup
@domain = domains(:airport)
@serializer = Serializers::RegistrantApi::Domain.new(@domain)