mirror of
https://github.com/internetee/registry.git
synced 2025-07-29 22:16:19 +02:00
Fixes after repp-apidoc update
This commit is contained in:
parent
c7701ce1b1
commit
26cb791586
11 changed files with 25 additions and 38 deletions
|
@ -14,7 +14,7 @@ class ReppV1ContactsCheckTest < ActionDispatch::IntegrationTest
|
|||
json = JSON.parse(response.body, symbolize_names: true)
|
||||
|
||||
assert_response :ok
|
||||
assert_equal 'nonexistant:code', json[:data][:contact][:id]
|
||||
assert_equal 'nonexistant:code', json[:data][:contact][:code]
|
||||
assert_equal true, json[:data][:contact][:available]
|
||||
end
|
||||
|
||||
|
@ -24,7 +24,7 @@ class ReppV1ContactsCheckTest < ActionDispatch::IntegrationTest
|
|||
json = JSON.parse(response.body, symbolize_names: true)
|
||||
|
||||
assert_response :ok
|
||||
assert_equal contact.code, json[:data][:contact][:id]
|
||||
assert_equal contact.code, json[:data][:contact][:code]
|
||||
assert_equal false, json[:data][:contact][:available]
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue