Permalink
Browse files

Add failing test for #319

  • Loading branch information...
ncr committed Apr 15, 2011
1 parent f4cfbd6 commit 223c4fb210121e18f03d3f68114cfddadd3b6083
Showing with 7 additions and 0 deletions.
  1. +7 −0 test/collection.js
View
@@ -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);
+ });
+
});

0 comments on commit 223c4fb

Please sign in to comment.