From f8fcf0e456e84a8f1e4b7a3247c56346457ff292 Mon Sep 17 00:00:00 2001 From: Oleg Hasjanov Date: Tue, 22 Aug 2023 15:36:11 +0300 Subject: [PATCH] added test --- test/interactions/email_check_test.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/interactions/email_check_test.rb b/test/interactions/email_check_test.rb index e3b1a8a17..adecd37d4 100644 --- a/test/interactions/email_check_test.rb +++ b/test/interactions/email_check_test.rb @@ -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