mirror of
https://github.com/internetee/registry.git
synced 2025-07-28 13:36:15 +02:00
Add status notes to repp domain serializer
This commit is contained in:
parent
9ba7af504a
commit
8be020582e
2 changed files with 18 additions and 1 deletions
17
test/lib/serializers/repp/domain_test.rb
Normal file
17
test/lib/serializers/repp/domain_test.rb
Normal file
|
@ -0,0 +1,17 @@
|
|||
require 'test_helper'
|
||||
require 'serializers/repp/domain'
|
||||
|
||||
class SerializersReppDomainTest < ActiveSupport::TestCase
|
||||
def setup
|
||||
@domain = domains(:airport)
|
||||
end
|
||||
|
||||
def test_returns_status_notes
|
||||
status_notes = { 'serverForceDelete' => '`@internet2.ee' }
|
||||
@domain.update!(statuses: %w[serverForceDelete], status_notes: status_notes)
|
||||
@serializer = Serializers::Repp::Domain.new(@domain)
|
||||
@json = @serializer.to_json
|
||||
|
||||
assert_equal(status_notes, @json[:statuses])
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue