Add force delete message to poll #2882

This commit is contained in:
Martin Lensment 2015-08-25 10:50:31 +03:00
parent fbd281007c
commit 827e3f8a0d
6 changed files with 30 additions and 4 deletions

View file

@ -224,6 +224,10 @@ describe Domain do
fda = Time.zone.now + Setting.redemption_grace_period.days
@domain.force_delete_at.should be_within(20).of(fda)
@domain.registrar.messages.count.should == 1
m = @domain.registrar.messages.first
m.body.should == "Force delete set on domain #{@domain.name}"
@domain.unset_force_delete
@domain.statuses.should == ['ok']