From b73d1b3610cd35a5558bfd65d0449f601a551139 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 24 Aug 2015 00:28:08 +0200 Subject: [PATCH] Improved match result of not routable networks. --- test/unit/email_helper_test.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/unit/email_helper_test.rb b/test/unit/email_helper_test.rb index 41db1b55f..a06b96434 100644 --- a/test/unit/email_helper_test.rb +++ b/test/unit/email_helper_test.rb @@ -180,7 +180,7 @@ class EmailHelperTest < ActiveSupport::TestCase } ) assert_equal('invalid', result[:result]) - assert_equal('Host not reachable!', result[:message_human]) + assert_match(/Host not reachable|Host not reachable/, result[:message_human]) assert_equal('172.42.42.42', result[:settings][:options][:host]) # gmail @@ -300,7 +300,7 @@ class EmailHelperTest < ActiveSupport::TestCase 'some@example.com', ) assert_equal('invalid', result[:result]) - assert_equal('Host not reachable!', result[:message_human]) + assert_match(/Host not reachable|Host not reachable/, result[:message_human]) assert_equal('172.42.42.42', result[:settings][:options][:host]) # gmail @@ -399,7 +399,6 @@ class EmailHelperTest < ActiveSupport::TestCase email: mailbox_user, password: mailbox_password, ) - puts "Result #{result.inspect}" assert_equal('ok', result[:result]) assert_equal('arber.znuny.com', result[:setting][:inbound][:options][:host]) assert_equal('arber.znuny.com', result[:setting][:outbound][:options][:host])