added tests

This commit is contained in:
Oleg Hasjanov 2021-02-19 16:50:42 +02:00
parent ce1a66d618
commit 3b38be71a8
3 changed files with 35 additions and 1 deletions

View 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