test/test_net_adapter.rb in geokit-1.10.0 vs test/test_net_adapter.rb in geokit-1.11.0
- old
+ new
@@ -1,6 +1,6 @@
-require File.join(File.dirname(__FILE__), "helper")
+require File.join(File.dirname(__FILE__), 'helper')
# Base class for testing geocoders.
class NetAdapterTest < Test::Unit::TestCase #:nodoc: all
class Geokit::Geocoders::CachedGeocoder < Geokit::Geocoders::Geocoder
def self.parse_json(hash)
@@ -21,15 +21,15 @@
@cache[key]
end
end
RESULT = '{"name":"json"}'
- RESULT_HASH = {"name" => "json"}
+ RESULT_HASH = {'name' => 'json'}
# Defines common test fixtures.
def setup
- @url = "http://www.cacheme.com"
- @address = "San Francisco, CA"
+ @url = 'http://www.cacheme.com'
+ @address = 'San Francisco, CA'
end
def test_cache
old_adapter = Geokit::Geocoders.net_adapter
Geokit::Geocoders.net_adapter = Geokit::NetAdapter::Typhoeus