summaryrefslogtreecommitdiff
path: root/test/net
diff options
context:
space:
mode:
Diffstat (limited to 'test/net')
-rw-r--r--test/net/http/test_http.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/net/http/test_http.rb b/test/net/http/test_http.rb
index 9d5cf39..4d82fd7 100644
--- a/test/net/http/test_http.rb
+++ b/test/net/http/test_http.rb
@@ -188,6 +188,15 @@ class TestNetHTTP < Test::Unit::TestCase
end
end
+ def test_failure_message_includes_failed_domain_and_port
+ begin
+ Net::HTTP.get(URI.parse("http://doesnotexist.bogus"))
+ fail "should have raised"
+ rescue => e
+ assert_includes e.message, "doesnotexist.bogus:80"
+ end
+ end
+
end
module TestNetHTTP_version_1_1_methods