Add failing test for #319

This commit is contained in:
Jacek Becela
2011-04-15 09:32:46 +02:00
parent f4cfbd633d
commit 223c4fb210

View File

@@ -286,4 +286,11 @@ $(document).ready(function() {
ok(_.isEqual(col.last().attributes, a.attributes));
});
test("Collection: trigger custom events on models", function() {
var fired = null;
a.bind("custom", function() { fired = true });
a.trigger("custom");
equals(fired, true);
});
});