lib/geocoder/lookups/test.rb in geocoder-1.8.0 vs lib/geocoder/lookups/test.rb in geocoder-1.8.1
- old
+ new
@@ -16,9 +16,10 @@
def self.set_default_stub(results)
@default_stub = results
end
def self.read_stub(query_text)
+ @default_stub ||= nil
stubs.fetch(query_text) {
return @default_stub unless @default_stub.nil?
raise ArgumentError, "unknown stub request #{query_text}"
}
end