Skip to content

Commit

Permalink
fix wrong test: collection.model must be a function
Browse files Browse the repository at this point in the history
  • Loading branch information
hmil committed Oct 3, 2014
1 parent e10ab33 commit cdce75e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/collection.js
Original file line number Diff line number Diff line change
Expand Up @@ -1189,15 +1189,15 @@
});

test("Attach options to collection.", 2, function() {
var model = new Backbone.Model;
var Model = Backbone.Model;
var comparator = function(){};

var collection = new Backbone.Collection([], {
model: model,
model: Model,
comparator: comparator
});

ok(collection.model === model);
ok(collection.model === Model);
ok(collection.comparator === comparator);
});

Expand Down

0 comments on commit cdce75e

Please sign in to comment.