mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 05:34:46 +02:00
Make domain unavailable when zone with the same origin exists
This commit is contained in:
parent
ee864c807f
commit
d40dc28484
5 changed files with 41 additions and 3 deletions
|
@ -16,4 +16,12 @@ class DNS::DomainNameTest < ActiveSupport::TestCase
|
|||
assert domain_name.unavailable?
|
||||
assert_equal :blocked, domain_name.unavailability_reason
|
||||
end
|
||||
|
||||
def test_unavailable_when_zone_with_the_same_origin_exists
|
||||
domain_name = DNS::DomainName.new('test')
|
||||
assert_equal 'test', dns_zones(:one).origin
|
||||
|
||||
assert domain_name.unavailable?
|
||||
assert_equal :zone_with_same_origin, domain_name.unavailability_reason
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue