Permalink
Browse files

ACF compatibility fix

  • Loading branch information...
sjdaniels committed Mar 23, 2014
1 parent d4e9d7a commit 0c5d5a57b4264491cad56d837864772d23bbcf4b
Showing with 4 additions and 4 deletions.
  1. +4 −4 test/DBCollectionTest.cfc
@@ -568,7 +568,7 @@ import cfmongodb.core.*;
dbCol.ensureIndex(fields=local.fields,name="multikeytest");
local.indexes = dbCol.getIndexes();
local.index = dbCol.getIndexes()[2];
local.index = local.indexes[2];
var i = 1;
for (var key in local.index["key"]){
@@ -582,7 +582,7 @@ import cfmongodb.core.*;
dbCol.ensureIndex(fields=["somethingsparse"],name="sparsetest",sparse=true);
local.indexes = dbCol.getIndexes();
local.index = dbCol.getIndexes()[2];
local.index = local.indexes[2];
assertTrue( local.index["sparse"], "index should be sparse" );
}
@@ -592,7 +592,7 @@ import cfmongodb.core.*;
dbCol.ensureIndex(fields=["somethingunique"],name="uniquetest",unique=true,sparse=true);
local.indexes = dbCol.getIndexes();
local.index = dbCol.getIndexes()[2];
local.index = local.indexes[2];
assertTrue( local.index["unique"], "index should be unique" );
}
@@ -604,7 +604,7 @@ import cfmongodb.core.*;
dbCol.ensureIndex(fields=["someindex"],name=indexname);
local.indexes = dbCol.getIndexes();
local.index = dbCol.getIndexes()[2];
local.index = local.indexes[2];
assertEquals( indexname, local.index["name"], "index should have correct name" );
}

0 comments on commit 0c5d5a5

Please sign in to comment.