Added poll messages #2557

This commit is contained in:
Priit Tark 2015-08-10 14:00:39 +03:00
parent c637d3f856
commit 86900fb839
5 changed files with 23 additions and 0 deletions

View file

@ -418,6 +418,12 @@ describe Domain do
@domain.statuses = DomainStatus::OK # restore
end
it 'should add poll message to registrar' do
domain = Fabricate(:domain)
domain.poll_message!(:poll_pending_update_confirmed_by_registrant)
domain.registrar.messages.first.body.should == 'Registrant confirmed domain update'
end
context 'about registrant update confirm' do
before :all do
@domain.registrant_verification_token = 123