mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 09:57:23 +02:00
parent
4075024d7e
commit
820dfebfbf
1 changed files with 0 additions and 11 deletions
|
@ -350,17 +350,6 @@ RSpec.describe Domain do
|
||||||
@domain.statuses.include?(DomainStatus::SERVER_HOLD).should == true
|
@domain.statuses.include?(DomainStatus::SERVER_HOLD).should == true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
it 'should set expired status and update outzone_at and delete_at' do
|
|
||||||
domain = Fabricate(:domain)
|
|
||||||
domain.statuses.should == ['ok']
|
|
||||||
domain.set_expired
|
|
||||||
domain.changes.keys.should == ['statuses', 'outzone_at', 'delete_at']
|
|
||||||
domain.save
|
|
||||||
|
|
||||||
domain.statuses.should == ['expired']
|
|
||||||
end
|
|
||||||
|
|
||||||
it 'should set pending update' do
|
it 'should set pending update' do
|
||||||
@domain.statuses = DomainStatus::OK # restore
|
@domain.statuses = DomainStatus::OK # restore
|
||||||
@domain.save
|
@domain.save
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue