Skip to content
Snippets Groups Projects
Commit c394f916 authored by Alex Reisner's avatar Alex Reisner
Browse files

Test Lookup#results instead of Geocoder.query.

parent 5e785934
No related branches found
No related tags found
No related merge requests found
...@@ -5,8 +5,8 @@ class LookupTest < Test::Unit::TestCase ...@@ -5,8 +5,8 @@ class LookupTest < Test::Unit::TestCase
def test_search_returns_empty_array_when_no_results def test_search_returns_empty_array_when_no_results
street_lookups.each do |l| street_lookups.each do |l|
Geocoder::Configuration.lookup = l lookup = Geocoder.send(:get_lookup, l)
assert_equal [], Geocoder.search("no results"), assert_equal [], lookup.send(:results, "no results"),
"Lookup #{l} does not return empty array when no results." "Lookup #{l} does not return empty array when no results."
end end
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment