Skip to content

Commit

Permalink
Fix unit test for model.isNew()
Browse files Browse the repository at this point in the history
  • Loading branch information
Gavin Huang committed Jun 23, 2011
1 parent 7ed20d7 commit 573c347
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ $(document).ready(function() {
a = new Backbone.Model(attrs);
ok(a.isNew(), "it should be new");
attrs = { 'foo': 1, 'bar': 2, 'baz': 3, 'id': -5 };
ok(a.isNew(), "any defined ID is legal, negative or positive");
a = new Backbone.Model(attrs);
ok(!a.isNew(), "any defined ID is legal, negative or positive");
});

test("Model: get", function() {
Expand Down

0 comments on commit 573c347

Please sign in to comment.