Permalink
Browse files

Test for generating more than 10 cids

  • Loading branch information...
1 parent 18c3908 commit 8112a522472066f56cb7e0d6a85fab68c27fa265 Niels van Hoorn committed May 24, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 test/specs/model.js
View
@@ -306,6 +306,14 @@ describe("Model", function(){
expect(Asset.find(2).eql(Asset.find(1))).not.toBeTruthy();
});
+ it("should handle more than 10 cIDs correctly", function(){
+ for (i=0; i < 12; i++) {
+ Asset.refresh({name: "Bob", id: i});
+ }
+ expect(Asset.idCounter).toEqual(12);
+ });
+
+
describe("with spy", function(){
var spy;

0 comments on commit 8112a52

Please sign in to comment.