test/test_lookup_test.rb in timezone-0.6.0 vs test/test_lookup_test.rb in timezone-0.99.0
- old
+ new
@@ -32,8 +32,10 @@
assert ::Timezone::Lookup::Geonames, ::Timezone::Configure.lookup.class
end
def teardown
- Timezone::Configure.begin{ |c| c.lookup = nil }
+ Timezone::Configure.instance_variable_set(:@lookup, nil)
+ Timezone::Configure.instance_variable_set(:@google_lookup, nil)
+ Timezone::Configure.instance_variable_set(:@geonames_lookup, nil)
end
end