Commits

Sergio Cinos  committed df78a01

Removed underscore dependency

  • Participants
  • Parent commits a6e1905

Comments (0)

Files changed (1)

File test/models.js

 var should = require("should"),
     backbone = require("backbone"),
     fs = require("fs"),
-    _ = require("underscore"),
     db = require('../lib/db/index.js');
 
 describe('Models', function(){
         });
 
         it('should contain only instances of backbone Collections', function(){
-            _.each(db.collections, function(item) {
+            for (var col in db.collections) if (db.collections.hasOwnProperty(col)) {
+                var item = db.collections[col];
                 item.should.be.a("object").and.be.an.instanceof(backbone.Collection);
-            })
+            }
         });
     });