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

Rename and fix bugs in test.

parent 02c07f7c
Branches
Tags
No related merge requests found
......@@ -12,11 +12,13 @@ class ResultTest < Test::Unit::TestCase
end
end
def test_yandex_result_without_city_has_not_raises_exception
def test_yandex_result_without_city_does_not_raise_exception
assert_nothing_raised do
Geocoder.configure(:lookup => :yandex)
set_api_key!(:yandex)
result = Geocoder.search([45.423733, -75.676333]).first
assert result.city, ""
result = Geocoder.search("no city and town").first
assert_equal "", result.city
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment