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

Simplify selection of result to test.

parent 543057ae
No related branches found
No related tags found
No related merge requests found
......@@ -44,8 +44,7 @@ class ResultTest < Test::Unit::TestCase
assert_nothing_raised do
Geocoder.configure(:lookup => :yandex)
set_api_key!(:yandex)
house_selector = Proc.new{|i| i.data['GeoObject']['metaDataProperty']['GeocoderMetaData']['kind'] == 'house'}
result = Geocoder.search("canada rue dupuis 14").select(&house_selector).last
result = Geocoder.search("canada rue dupuis 14")[6]
assert_equal "", result.city
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