added test

This commit is contained in:
Oleg Hasjanov 2023-08-22 15:36:11 +03:00
parent 64fb5c6149
commit f8fcf0e456

View file

@ -96,6 +96,13 @@ class EmailCheckTest < ActiveSupport::TestCase
assert_equal contact_two.validation_events.count, 3
end
def test_should_test_email_with_punnycode
email = "info@xn--energiathus-mfb.ee"
result = Actions::SimpleMailValidator.run(email: email, level: :mx)
assert result
end
private
def trumail_result