Permalink
Browse files

Use ok(false) instead of non-existent fail.

  • Loading branch information...
1 parent bc4c7a3 commit 7278dfbe7e5b110946a76e4b02ca4e0547c17ef5 @braddunbar braddunbar committed Oct 8, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 test/view.js
View
@@ -286,11 +286,11 @@ $(document).ready(function() {
test("dispose", 0, function() {
var View = Backbone.View.extend({
events: {
- click: function() { fail(); }
+ click: function() { ok(false); }
},
initialize: function() {
- this.model.on('all x', function(){ fail(); }, this);
- this.collection.on('all x', function(){ fail(); }, this);
+ this.model.on('all x', function(){ ok(false); }, this);
+ this.collection.on('all x', function(){ ok(false); }, this);
}
});

0 comments on commit 7278dfb

Please sign in to comment.