From 822863619593a1ea67739ce9fb71632db25c1858 Mon Sep 17 00:00:00 2001 From: Alex Reisner <alex@alexreisner.com> Date: Mon, 7 Sep 2015 18:38:47 -0400 Subject: [PATCH] Remove tests for deprecated functionality. --- test/unit/mongoid_test.rb | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/test/unit/mongoid_test.rb b/test/unit/mongoid_test.rb index 78fd4a04..63d1b575 100644 --- a/test/unit/mongoid_test.rb +++ b/test/unit/mongoid_test.rb @@ -14,13 +14,6 @@ class MongoidTest < GeocoderTestCase assert p.distance_to([30, -94]).is_a?(Float) end - def test_custom_coordinate_field_near_scope - location = [40.750354, -73.993371] - p = PlaceUsingMongoid.near(location) - key = Mongoid::VERSION >= "3" ? "location" : :location - assert_equal p.selector[key]['$nearSphere'], location.reverse - end - def test_model_configuration p = PlaceUsingMongoid.new(*geocoded_object_params(:msg)) p.location = [0, 0] @@ -36,11 +29,4 @@ class MongoidTest < GeocoderTestCase result = PlaceUsingMongoidWithoutIndex.index_options.keys.flatten[0] == :coordinates assert !result end - - def test_nil_radius_omits_max_distance - location = [40.750354, -73.993371] - p = PlaceUsingMongoid.near(location, nil) - key = Mongoid::VERSION >= "3" ? "location" : :location - assert_equal nil, p.selector[key]['$maxDistance'] - end end -- GitLab