mirror of
https://github.com/internetee/registry.git
synced 2025-07-03 01:33:36 +02:00
Add domain expiration procedure #2622
This commit is contained in:
parent
e2df9b7e19
commit
432e8a95ec
3 changed files with 26 additions and 0 deletions
|
@ -85,6 +85,17 @@ describe Domain do
|
|||
@domain.registrant_update_confirmable?('123').should == false
|
||||
end
|
||||
|
||||
it 'should expire domains' do
|
||||
Domain.expire_domains
|
||||
@domain.domain_statuses.where(value: DomainStatus::EXPIRED).count.should == 0
|
||||
|
||||
@domain.valid_to = Time.zone.now - 10.days
|
||||
@domain.save
|
||||
|
||||
Domain.expire_domains
|
||||
@domain.domain_statuses.where(value: DomainStatus::EXPIRED).count.should == 1
|
||||
end
|
||||
|
||||
context 'about registrant update confirm' do
|
||||
before :all do
|
||||
@domain.registrant_verification_token = 123
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue