mirror of
https://github.com/internetee/registry.git
synced 2025-07-03 01:33:36 +02:00
Fix renew restriction #2610
This commit is contained in:
parent
414b906261
commit
cb02ac4c93
3 changed files with 4 additions and 4 deletions
|
@ -1999,7 +1999,7 @@ describe 'EPP Domain', epp: true do
|
|||
end
|
||||
|
||||
it 'does not renew a domain unless less than 90 days till expiration' do
|
||||
domain.valid_to = Time.zone.now.to_date + 91.days
|
||||
domain.valid_to = Time.zone.now.to_date + 90.days
|
||||
domain.save
|
||||
exp_date = domain.valid_to.to_date
|
||||
|
||||
|
@ -2013,7 +2013,7 @@ describe 'EPP Domain', epp: true do
|
|||
response[:results][0][:msg].should == 'Object is not eligible for renewal'
|
||||
response[:results][0][:result_code].should == '2105'
|
||||
|
||||
domain.valid_to = Time.zone.now.to_date + 90.days
|
||||
domain.valid_to = Time.zone.now.to_date + 89.days
|
||||
domain.save
|
||||
exp_date = domain.valid_to.to_date
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue