Skip to content

Commit

Permalink
Collection#set shouldn't parse
Browse files Browse the repository at this point in the history
  • Loading branch information
jridgewell committed May 30, 2015
1 parent 13de636 commit 7557f68
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions test/collection.js
Expand Up @@ -1087,13 +1087,12 @@
});

test("`set` and model level `parse`", function() {
var Model = Backbone.Model.extend({
parse: function(model) {
return model.model;
}
});
var Collection = Backbone.Collection.extend({
model: Model
model: Backbone.Model.extend({
parse: function(model) {
return model.model;
}
})
});
var model = new Model({id: 1});
var collection = new Collection(model);
Expand Down

0 comments on commit 7557f68

Please sign in to comment.