-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2609 from internetee/unable-to-create-contact-wit…
…h-punnycode Unable to create contact with punnycode
- Loading branch information
Showing
2 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -96,6 +96,13 @@ def test_should_remove_old_record_if_multiple_contacts_has_the_same_email | |
assert_equal contact_two.validation_events.count, 3 | ||
end | ||
|
||
def test_should_test_email_with_punnycode | ||
email = "[email protected]" | ||
result = Actions::SimpleMailValidator.run(email: email, level: :mx) | ||
|
||
assert result | ||
end | ||
|
||
private | ||
|
||
def trumail_result | ||
|