Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add failing test for #319
  • Loading branch information
ncr committed Apr 15, 2011
1 parent f4cfbd6 commit 223c4fb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/collection.js
Expand Up @@ -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.