Skip to content

Commit

Permalink
Suppress warning for URI.escape
Browse files Browse the repository at this point in the history
  • Loading branch information
drbrain committed Jan 4, 2011
1 parent dc6cfc0 commit 926ff18
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/test_gem_remote_fetcher.rb
Expand Up @@ -372,7 +372,7 @@ def test_explicit_proxy_with_user_auth
uri.user, uri.password = 'domain%5Cuser', 'bar'
fetcher = Gem::RemoteFetcher.new uri.to_s
proxy = fetcher.instance_variable_get("@proxy_uri")
assert_equal 'domain\user', URI.unescape(proxy.user)
assert_equal 'domain\user', fetcher.unescape(proxy.user)
assert_equal 'bar', proxy.password
assert_data_from_proxy fetcher.fetch_path(@server_uri)
end
Expand All @@ -383,7 +383,7 @@ def test_explicit_proxy_with_user_auth
fetcher = Gem::RemoteFetcher.new uri.to_s
proxy = fetcher.instance_variable_get("@proxy_uri")
assert_equal 'user', proxy.user
assert_equal 'my pass', URI.unescape(proxy.password)
assert_equal 'my pass', fetcher.unescape(proxy.password)
assert_data_from_proxy fetcher.fetch_path(@server_uri)
end
end
Expand All @@ -406,8 +406,8 @@ def test_explicit_proxy_with_user_auth_in_env
ENV['http_proxy_pass'] = 'my bar'
fetcher = Gem::RemoteFetcher.new nil
proxy = fetcher.instance_variable_get("@proxy_uri")
assert_equal 'foo\user', URI.unescape(proxy.user)
assert_equal 'my bar', URI.unescape(proxy.password)
assert_equal 'foo\user', fetcher.unescape(proxy.user)
assert_equal 'my bar', fetcher.unescape(proxy.password)
assert_data_from_proxy fetcher.fetch_path(@server_uri)
end
end
Expand Down

0 comments on commit 926ff18

Please sign in to comment.