internetee-registry/test/integration/registrant_area/domain_update_confirms_test.rb
2021-03-04 13:22:45 +02:00

18 lines
594 B
Ruby

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