test/proxy_test.rb in geocoder-1.1.5 vs test/proxy_test.rb in geocoder-1.1.6

- old
+ new

@@ -2,21 +2,21 @@ require 'test_helper' class ProxyTest < Test::Unit::TestCase def test_uses_proxy_when_specified - Geocoder::Configuration.http_proxy = 'localhost' + Geocoder.configure(:http_proxy => 'localhost') lookup = Geocoder::Lookup::Google.new assert lookup.send(:http_client).proxy_class? end def test_doesnt_use_proxy_when_not_specified lookup = Geocoder::Lookup::Google.new assert !lookup.send(:http_client).proxy_class? end def test_exception_raised_on_bad_proxy_url - Geocoder::Configuration.http_proxy = ' \\_O< Quack Quack' + Geocoder.configure(:http_proxy => ' \\_O< Quack Quack') assert_raise Geocoder::ConfigurationError do Geocoder::Lookup::Google.new.send(:http_client) end end end