Improved match result of not routable networks.

This commit is contained in:
Martin Edenhofer 2015-08-24 00:48:06 +02:00
parent b73d1b3610
commit 17bd764005

View file

@ -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