mirror of
https://github.com/internetee/registry.git
synced 2025-07-27 13:06:18 +02:00
added tests for disputed and admin_user models
This commit is contained in:
parent
ad391e1b8c
commit
3877c11d4d
2 changed files with 23 additions and 0 deletions
|
@ -123,6 +123,15 @@ class AdminUserTest < ActiveSupport::TestCase
|
|||
assert user.valid?
|
||||
end
|
||||
|
||||
def test_min_password_length
|
||||
assert_equal AdminUser.min_password_length, 8
|
||||
end
|
||||
|
||||
def test_country_instance
|
||||
user = valid_user
|
||||
assert user.country.present?
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def valid_user
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue