summaryrefslogtreecommitdiff
path: root/test/open-uri/test_open-uri.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/open-uri/test_open-uri.rb')
-rw-r--r--test/open-uri/test_open-uri.rb12
1 files changed, 0 insertions, 12 deletions
diff --git a/test/open-uri/test_open-uri.rb b/test/open-uri/test_open-uri.rb
index 0c7d77c305..9a52e7a287 100644
--- a/test/open-uri/test_open-uri.rb
+++ b/test/open-uri/test_open-uri.rb
@@ -68,18 +68,6 @@ class TestOpenURI < Test::Unit::TestCase
@proxies.each_with_index {|k, i| ENV[k] = @old_proxies[i] }
end
- def test_deprecated_kernel_open
- with_http {|srv, dr, url|
- srv.mount_proc("/foo200", lambda { |req, res| res.body = "foo200" } )
- assert_warning(/calling URI.open via Kernel#open is deprecated, call URI.open directly/) {
- open("#{url}/foo200") {|f|
- assert_equal("200", f.status[0])
- assert_equal("foo200", f.read)
- }
- }
- }
- end
-
def test_200_uri_open
with_http {|srv, dr, url|
srv.mount_proc("/urifoo200", lambda { |req, res| res.body = "urifoo200" } )