This commit is contained in:
Martin Lensment 2015-06-10 15:17:13 +03:00
parent 4fb9000bff
commit 3353dd7484
2 changed files with 4 additions and 3 deletions

View file

@ -1999,7 +1999,8 @@ 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 + 90.days
# both days are inclusive
domain.valid_to = Time.zone.now.to_date + 89.days
domain.save
exp_date = domain.valid_to.to_date
@ -2013,7 +2014,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 + 89.days
domain.valid_to = Time.zone.now.to_date + 88.days
domain.save
exp_date = domain.valid_to.to_date