mirror of
https://github.com/internetee/registry.git
synced 2025-07-20 09:46:09 +02:00
parent
90ed23f64d
commit
b6ecae6a35
41 changed files with 1239 additions and 61 deletions
|
@ -35,4 +35,14 @@ class RegistrantUserTest < ActiveSupport::TestCase
|
|||
assert_equal('1234', @user.ident)
|
||||
assert_equal('US', @user.country_code)
|
||||
end
|
||||
|
||||
def test_first_name_from_username
|
||||
user = RegistrantUser.new(username: 'John Doe')
|
||||
assert_equal 'John', user.first_name
|
||||
end
|
||||
|
||||
def test_last_name_from_username
|
||||
user = RegistrantUser.new(username: 'John Doe')
|
||||
assert_equal 'Doe', user.last_name
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue