Skip to content

Commit

Permalink
ACF compatibility fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Daniels committed Mar 23, 2014
1 parent d4e9d7a commit 0c5d5a5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/DBCollectionTest.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -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"]){
Expand All @@ -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" );
}
Expand All @@ -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" );
}
Expand All @@ -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" );
}
Expand Down

0 comments on commit 0c5d5a5

Please sign in to comment.