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

Be more specific about silencing warnings.

parent 983e5fbc
No related branches found
No related tags found
No related merge requests found
...@@ -12,10 +12,10 @@ class LookupTest < GeocoderTestCase ...@@ -12,10 +12,10 @@ class LookupTest < GeocoderTestCase
end end
def test_search_returns_empty_array_when_no_results def test_search_returns_empty_array_when_no_results
silence_warnings do Geocoder::Lookup.all_services_except_test.each do |l|
Geocoder::Lookup.all_services_except_test.each do |l| lookup = Geocoder::Lookup.get(l)
lookup = Geocoder::Lookup.get(l) set_api_key!(l)
set_api_key!(l) silence_warnings do
assert_equal [], lookup.send(:results, Geocoder::Query.new("no results")), assert_equal [], lookup.send(:results, Geocoder::Query.new("no results")),
"Lookup #{l} does not return empty array when no results." "Lookup #{l} does not return empty array when no results."
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