test/functional/test_indexing.rb in mongo_mapper-0.7.2 vs test/functional/test_indexing.rb in mongo_mapper-0.7.3

- old
+ new

@@ -29,11 +29,11 @@ # order is different for different versions of ruby so instead of # just checking have_index('first_name_1_last_name_-1') I'm checking # the values of the indexes to make sure the index creation was successful @document.collection.index_information.detect do |index| - keys = index[1] - keys.include?(['first_name', 1]) && keys.include?(['last_name', -1]) + keys = index[0] + keys.include?('first_name_1') && keys.include?('last_name_-1') end.should_not be_nil end should "work with :index shortcut when defining key" do @document.key :father, String, :index => true \ No newline at end of file