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

Code formatting: replace tabs with spaces.

parent 1c0ce90a
No related branches found
No related tags found
No related merge requests found
......@@ -14,22 +14,18 @@ class MongoidTest < Test::Unit::TestCase
def test_geocoded_check
p = Place.new(*venue_params(:msg))
p.location = [40.750354, -73.993371]
assert p.geocoded?
end
def test_distance_to_returns_float
p = Place.new(*venue_params(:msg))
p.location = [40.750354, -73.993371]
assert p.distance_to([30, -94]).is_a?(Float)
end
def test_custom_coordinate_field_near_scope
location = [40.750354, -73.993371]
p = Place.near(location)
assert p.selector[:location]
assert_equal p.selector[:location]['$nearSphere'], location.reverse
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment