[Pkg-javascript-commits] [backbone] 72/101: updating rest tests.

Jonas Smedegaard js at moszumanska.debian.org
Sat May 3 16:58:30 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to tag 0.1.0
in repository backbone.

commit 8e7405e17a90d6f29ed5030c9775d54ca8b67597
Author: Jeremy Ashkenas <jashkenas at gmail.com>
Date:   Tue Oct 12 16:01:14 2010 -0400

    updating rest tests.
---
 test/collection.js | 4 ++--
 test/model.js      | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/test/collection.js b/test/collection.js
index 84921aa..be9a45f 100644
--- a/test/collection.js
+++ b/test/collection.js
@@ -78,13 +78,13 @@ $(document).ready(function() {
 
   test("collections: fetch", function() {
     col.fetch();
-    equals(lastRequest[0], 'GET');
+    equals(lastRequest[0], 'read');
     equals(lastRequest[1], col);
   });
 
   test("collections: create", function() {
     var model = col.create({label: 'f'});
-    equals(lastRequest[0], 'POST');
+    equals(lastRequest[0], 'create');
     equals(lastRequest[1], model);
     equals(model.get('label'), 'f');
     equals(model.collection, col);
diff --git a/test/model.js b/test/model.js
index 7f77ad8..ac0dc19 100644
--- a/test/model.js
+++ b/test/model.js
@@ -100,13 +100,13 @@ $(document).ready(function() {
 
   test("model: save", function() {
     doc.save({title : "Henry V"});
-    equals(lastRequest[0], 'PUT');
+    equals(lastRequest[0], 'update');
     ok(_.isEqual(lastRequest[1], doc));
   });
 
   test("model: destroy", function() {
     doc.destroy();
-    equals(lastRequest[0], 'DELETE');
+    equals(lastRequest[0], 'delete');
     ok(_.isEqual(lastRequest[1], doc));
   });
 

-- 
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