[Pkg-javascript-commits] [backbone] 77/211: Merging in a test for Issue #204

Jonas Smedegaard js at moszumanska.debian.org
Sat May 3 17:00:05 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 4489d7f5f123f7541995d188aaf99a350845fd70
Author: Jeremy Ashkenas <jashkenas at gmail.com>
Date:   Mon Feb 7 15:02:20 2011 -0500

    Merging in a test for Issue #204
---
 test/model.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/test/model.js b/test/model.js
index 049db7f..7b4e9dd 100644
--- a/test/model.js
+++ b/test/model.js
@@ -66,14 +66,14 @@ $(document).ready(function() {
     doc.collection = collection;
   });
 
-  test("Model: url when using urlRoot", function() {
+  test("Model: url when using urlRoot, and uri encoding", function() {
     var Model = Backbone.Model.extend({
       urlRoot: '/collection'
     });
     var model = new Model();
     equals(model.url(), '/collection');
-    model.set({id: '1'});
-    equals(model.url(), '/collection/1');
+    model.set({id: '+1+'});
+    equals(model.url(), '/collection/%2B1%2B');
   });
 
   test("Model: clone", 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