adding correct number of expected assertions to nested change events model test

This commit is contained in:
Sam Breed
2012-06-03 11:38:18 -06:00
parent 3ad4ee8615
commit 626e3f16f7

View File

@@ -495,8 +495,7 @@ $(document).ready(function() {
notEqual(Child.prototype.instancePropDiff, undefined);
});
//FIXME: can't predict the number of expectations
test("Model: Nested change events don't clobber previous attributes", function() {
test("Model: Nested change events don't clobber previous attributes", 4, function() {
var A = Backbone.Model.extend({
initialize: function() {
this.on("change:state", function(a, newState) {