diff --git a/test/functional/test_document.rb b/test/functional/test_document.rb index 444eb6459..949df3e84 100644 --- a/test/functional/test_document.rb +++ b/test/functional/test_document.rb @@ -721,28 +721,28 @@ class ::Thing should "allow creating index for a key" do @document.ensure_index :first_name MongoMapper.ensure_indexes! - - @document.should have_index('first_name_1') + + @document.should have_index('first_name_1') end should "allow creating unique index for a key" do @document.ensure_index :first_name, :unique => true MongoMapper.ensure_indexes! - + @document.should have_index('first_name_1') end should "allow creating index on multiple keys" do @document.ensure_index [[:first_name, 1], [:last_name, -1]] MongoMapper.ensure_indexes! - - @document.should have_index('last_name_-1_first_name_1') + + @document.should have_index('first_name_1_last_name_-1') end should "work with :index shortcut when defining key" do @document.key :father, String, :index => true MongoMapper.ensure_indexes! - + @document.should have_index('father_1') end end