test: added new tests

This commit is contained in:
Oleg Hasjanov 2021-03-04 13:22:45 +02:00
parent 14b8dd6ade
commit c352936a21
3 changed files with 68 additions and 0 deletions

View file

@ -0,0 +1,18 @@
require 'test_helper'
class RegistrantAreaDomainUpdateConfirmsIntegrationTest < ApplicationIntegrationTest
setup do
@domain = domains(:shop)
end
def test_show_confirm_to_update_domain
@domain.update!(registrant_verification_asked_at: Time.zone.now,
registrant_verification_token: 'test',
statuses: [DomainStatus::PENDING_UPDATE])
get registrant_domain_update_confirm_path(@domain, token: 'test', confirmed: true)
assert @domain.registrant_update_confirmable?('test')
end
end