diff options
author | Jeremy Evans <code@jeremyevans.net> | 2020-07-30 12:48:19 -0700 |
---|---|---|
committer | Jeremy Evans <code@jeremyevans.net> | 2020-08-16 07:41:40 -0700 |
commit | a73b5cc556bd131fe924ed6bb02b3c5bdf1593e8 (patch) | |
tree | dae17ee3af1f887e9335bf64579ed5a70d46c059 /test | |
parent | 3a4be429b50062122d1616256de38649464d3146 (diff) |
Remove the deprecated override of Kernel#open in open-uri
This was deprecated in 2.7 to resolve [Misc #15893].
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3377
Diffstat (limited to 'test')
-rw-r--r-- | test/open-uri/test_open-uri.rb | 12 |
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" } ) |