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

Add tests for fetch_x: should be alias.

parent f9beaa20
No related branches found
No related tags found
No related merge requests found
...@@ -94,6 +94,20 @@ class GeocoderTest < Test::Unit::TestCase ...@@ -94,6 +94,20 @@ class GeocoderTest < Test::Unit::TestCase
assert_not_nil g.location assert_not_nil g.location
end end
def test_fetch_coordinates_is_alias_for_geocode
v = Venue.new(*venue_params(:msg))
coords = [40.750354, -73.993371]
assert_equal coords, v.fetch_coordinates
assert_equal coords, [v.latitude, v.longitude]
end
def test_fetch_address_is_alias_for_reverse_geocode
v = Landmark.new(*landmark_params(:msg))
address = "4 Penn Plaza, New York, NY 10001, USA"
assert_equal address, v.fetch_address
assert_equal address, v.address
end
# --- Google --- # --- Google ---
......
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