mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 19:20:37 +02:00
Test renewal prohibited statuses
This commit is contained in:
parent
c07b7bf7f2
commit
9976e3dd93
2 changed files with 45 additions and 0 deletions
|
@ -431,6 +431,19 @@ class DomainTest < ActiveSupport::TestCase
|
|||
assert_equal created_at, domain.registered_at
|
||||
end
|
||||
|
||||
def test_not_renewable_if_renew_prohibited
|
||||
assert @domain.renewable?
|
||||
|
||||
@domain.statuses << DomainStatus::SERVER_RENEW_PROHIBITED
|
||||
assert_not @domain.renewable?
|
||||
|
||||
@domain.statuses.delete(DomainStatus::SERVER_RENEW_PROHIBITED)
|
||||
assert @domain.renewable?
|
||||
|
||||
@domain.statuses << DomainStatus::CLIENT_RENEW_PROHIBITED
|
||||
assert_not @domain.renewable?
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def valid_domain
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue