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
No related branches found
No related tags found
No related merge requests found
...@@ -12,11 +12,13 @@ class ResultTest < Test::Unit::TestCase ...@@ -12,11 +12,13 @@ class ResultTest < Test::Unit::TestCase
end end
end end
def test_yandex_result_without_city_has_not_raises_exception def test_yandex_result_without_city_does_not_raise_exception
Geocoder.configure(:lookup => :yandex) assert_nothing_raised do
set_api_key!(:yandex) Geocoder.configure(:lookup => :yandex)
result = Geocoder.search([45.423733, -75.676333]).first set_api_key!(:yandex)
assert result.city, "" result = Geocoder.search("no city and town").first
assert_equal "", result.city
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