From 17bd764005d84377ec4af544ba9a6aaac63fce68 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 24 Aug 2015 00:48:06 +0200 Subject: [PATCH] Improved match result of not routable networks. --- test/unit/email_helper_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/email_helper_test.rb b/test/unit/email_helper_test.rb index a06b96434..3ec4b687d 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_match(/Host not reachable|Host not reachable/, result[:message_human]) + assert_match(/Host not reachable|No route to host/, 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_match(/Host not reachable|Host not reachable/, result[:message_human]) + assert_match(/Host not reachable|No route to host/, result[:message_human]) assert_equal('172.42.42.42', result[:settings][:options][:host]) # gmail