mirror of
https://github.com/internetee/registry.git
synced 2025-07-29 22:16:19 +02:00
Updated tests after summary endpoint update
This commit is contained in:
parent
900492f38f
commit
872c650ef7
2 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,6 @@ class ReppV1AccountsSwitchUserTest < ActionDispatch::IntegrationTest
|
|||
assert_equal json[:data][:registrar][:username], new_user.username
|
||||
assert json[:data][:registrar][:roles].include? 'super'
|
||||
assert_equal json[:data][:registrar][:registrar_name], 'Good Names'
|
||||
assert_equal json[:data][:registrar][:balance][:amount].to_f, new_user.registrar.cash_account.balance
|
||||
assert json[:data][:registrar][:abilities].is_a? Hash
|
||||
end
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@ class ReppV1RegistrarSummaryTest < ActionDispatch::IntegrationTest
|
|||
assert_equal json[:data][:registrar_name], 'Best Names'
|
||||
assert_equal json[:data][:domains], @user.registrar.domains.count
|
||||
assert_equal json[:data][:contacts], @user.registrar.contacts.count
|
||||
assert_equal json[:data][:balance][:amount].to_f, @user.registrar.cash_account.balance
|
||||
assert json[:data][:notification].is_a? Hash
|
||||
assert_equal json[:data][:notifications_count], @user.unread_notifications.count
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue