mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 14:44:47 +02:00
added tests
This commit is contained in:
parent
ce1a66d618
commit
3b38be71a8
3 changed files with 35 additions and 1 deletions
17
test/models/domain_contact_test.rb
Normal file
17
test/models/domain_contact_test.rb
Normal file
|
@ -0,0 +1,17 @@
|
|||
require 'test_helper'
|
||||
|
||||
class DomainContactTest < ActiveSupport::TestCase
|
||||
setup do
|
||||
@domain_contact = domain_contacts(:shop_jane)
|
||||
end
|
||||
|
||||
def test_if_domain_contact_type_invalid
|
||||
@domain_contact.update(type: "Some")
|
||||
assert @domain_contact.name, ''
|
||||
end
|
||||
|
||||
def test_value_typeahead
|
||||
assert @domain_contact.value_typeahead, 'Jane'
|
||||
end
|
||||
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue