mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 14:44:47 +02:00
test: added new tests
This commit is contained in:
parent
14b8dd6ade
commit
c352936a21
3 changed files with 68 additions and 0 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue