mirror of
https://github.com/jashkenas/backbone.git
synced 2026-04-30 03:00:06 -04:00
defaulting Backbone.Collection#model to be Backbone.Model
This commit is contained in:
@@ -79,4 +79,12 @@ $(document).ready(function() {
|
||||
equals(lastRequest[1], col);
|
||||
});
|
||||
|
||||
test("collections: create", function() {
|
||||
var model = col.create({label: 'f'});
|
||||
equals(lastRequest[0], 'POST');
|
||||
equals(lastRequest[1], model);
|
||||
equals(model.get('label'), 'f');
|
||||
equals(model.collection, col);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user