Fix #1057 - Save with wait validates model.

This commit is contained in:
Brad Dunbar
2012-03-18 08:59:23 -04:00
parent 01fb4149e1
commit 6948b59e61
2 changed files with 10 additions and 1 deletions

View File

@@ -615,6 +615,12 @@ $(document).ready(function() {
equal(changed, 1);
});
test("save with wait validates attributes", 1, function() {
var model = new Backbone.Model();
model.validate = function() { ok(true); };
model.save({x: 1}, {wait: true});
});
test("nested `set` during `'change:attr'`", function() {
var events = [];
var model = new Backbone.Model();