Improved match result of not routable networks.
This commit is contained in:
parent
b73d1b3610
commit
17bd764005
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue