internetee-registry/test/models/domain_contact_test.rb
2021-02-19 16:50:42 +02:00

17 lines
No EOL
355 B
Ruby

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