Skip to content
Snippets Groups Projects
Commit 6e61681b authored by Thu Trang Pham's avatar Thu Trang Pham
Browse files

Fix mongoid test for Mogoid versions >= 4.0.0

parent 2ed3287b
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,11 @@ class MongoidTest < GeocoderTestCase
end
def test_index_is_skipped_if_skip_option_flag
result = PlaceUsingMongoidWithoutIndex.index_options.keys.flatten[0] == :coordinates
if PlaceUsingMongoidWithoutIndex.respond_to?(:index_options)
result = PlaceUsingMongoidWithoutIndex.index_options.keys.flatten[0] == :coordinates
else
result = PlaceUsingMongoidWithoutIndex.index_specifications[0] == :coordinates
end
assert !result
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