mirror of
https://github.com/internetee/registry.git
synced 2025-07-30 14:36:22 +02:00
Corrected tests
This commit is contained in:
parent
03f2ab0463
commit
5cf18bd9e5
3 changed files with 11 additions and 5 deletions
|
@ -23,7 +23,7 @@ class ReppV1ContactsVerifyTest < ActionDispatch::IntegrationTest
|
|||
claims_required: [{ type: 'sub', value: "#{@contact.ident_country_code}#{@contact.ident}" }],
|
||||
reference: @contact.code
|
||||
}
|
||||
).to_return(status: 200, body: { id: '123' }.to_json, headers: { 'Content-Type' => 'application/json' })
|
||||
).to_return(status: 200, body: { id: '123', link: 'http://link' }.to_json, headers: { 'Content-Type' => 'application/json' })
|
||||
end
|
||||
|
||||
def test_returns_error_when_not_found
|
||||
|
@ -47,7 +47,10 @@ class ReppV1ContactsVerifyTest < ActionDispatch::IntegrationTest
|
|||
assert contact.present?
|
||||
assert contact.ident_request_sent_at
|
||||
assert_nil contact.verified_at
|
||||
assert_notify_contact('Identification requested')
|
||||
assert_notify_contact(
|
||||
'Palun kinnitage oma isik domeeni toimingute jätkamiseks ' \
|
||||
'/ Please verify your identity to proceed with domain operations'
|
||||
)
|
||||
end
|
||||
|
||||
def test_handles_non_epp_error
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue