Added domain confirmation verification url

This commit is contained in:
Priit Tark 2015-05-15 10:00:04 +03:00
parent 8b392fcc56
commit 6821afff65
8 changed files with 33 additions and 7 deletions

View file

@ -31,10 +31,7 @@ describe DomainMailer do
@new_registrant = Fabricate(:registrant, email: 'test@example.org')
@domain = Fabricate(:domain, registrant: @registrant)
@domain.deliver_emails = true
<<<<<<< HEAD
=======
@domain.registrant_verification_token = '123'
>>>>>>> 0ddd2b6f32fa7e9abec8b2e7c88173585a78f3dd
@domain.registrant = @new_registrant
@mail = DomainMailer.registrant_updated(@domain)
end
@ -54,5 +51,9 @@ describe DomainMailer do
it 'should render body' do
@mail.body.encoded.should =~ /Registrisse laekus taotlus domeeni/
end
it 'should render verification url' do
@mail.body.encoded.should =~ /registrant\/domain_update_confirms/
end
end
end