test/cache_test.rb in geocoder-1.1.5 vs test/cache_test.rb in geocoder-1.1.6
- old
+ new
@@ -2,12 +2,12 @@
require 'test_helper'
class CacheTest < Test::Unit::TestCase
def test_second_occurrence_of_request_is_cache_hit
- Geocoder::Configuration.cache = {}
+ Geocoder.configure(:cache => {})
Geocoder::Lookup.all_services_except_test.each do |l|
- Geocoder::Configuration.lookup = l
+ Geocoder.configure(:lookup => l)
set_api_key!(l)
results = Geocoder.search("Madison Square Garden")
assert !results.first.cache_hit,
"Lookup #{l} returned erroneously cached result."
results = Geocoder.search("Madison Square Garden")