Add domain delete period method #2622

This commit is contained in:
Martin Lensment 2015-06-10 12:11:16 +03:00
parent 249262e224
commit 21829faf38
3 changed files with 52 additions and 11 deletions

View file

@ -317,7 +317,7 @@ describe 'EPP Domain', epp: true do
response = epp_plain_request(xml)
response[:msg].should == 'Command completed successfully'
response[:result_code].should == '1000'
Domain.first.valid_to.should == 1.year.since.to_date
Domain.first.valid_to.should be_within(5).of(1.year.since)
end
it 'does not create a domain with invalid period' do