[Pkg-javascript-commits] [backbone] 195/211: Fix unit test for model.isNew()
Jonas Smedegaard
js at moszumanska.debian.org
Sat May 3 17:00:24 UTC 2014
This is an automated email from the git hooks/post-receive script.
js pushed a commit to tag 0.5.0
in repository backbone.
commit 573c3475538f4c42b9e92a52f19efa3b0c3a0cb1
Author: Gavin Huang <gravof at gmail.com>
Date: Thu Jun 23 16:08:16 2011 +0800
Fix unit test for model.isNew()
---
test/model.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/test/model.js b/test/model.js
index 2f68a5c..e593963 100644
--- a/test/model.js
+++ b/test/model.js
@@ -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() {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/backbone.git
More information about the Pkg-javascript-commits
mailing list