mirror of
https://github.com/internetee/registry.git
synced 2025-08-01 15:34:41 +02:00
added test
This commit is contained in:
parent
64fb5c6149
commit
f8fcf0e456
1 changed files with 7 additions and 0 deletions
|
@ -96,6 +96,13 @@ class EmailCheckTest < ActiveSupport::TestCase
|
||||||
assert_equal contact_two.validation_events.count, 3
|
assert_equal contact_two.validation_events.count, 3
|
||||||
end
|
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
|
private
|
||||||
|
|
||||||
def trumail_result
|
def trumail_result
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue