aboutsummaryrefslogtreecommitdiffstats
path: root/test/ResourceSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/ResourceSpec.js')
-rw-r--r--test/ResourceSpec.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/ResourceSpec.js b/test/ResourceSpec.js
index 7ee7aec8..29bdad75 100644
--- a/test/ResourceSpec.js
+++ b/test/ResourceSpec.js
@@ -52,6 +52,13 @@ describe("resource", function() {
R.get({a:4, b:5, c:6});
}));
+ it('should support escaping collons in url template', inject(function($httpBackend) {
+ var R = resource.route('http://localhost\\:8080/Path/:a/\\:stillPath/:b');
+
+ $httpBackend.expect('GET', 'http://localhost:8080/Path/foo/:stillPath/bar').respond();
+ R.get({a: 'foo', b: 'bar'});
+ }));
+
it('should correctly encode url params', inject(function($httpBackend) {
var R = resource.route('/Path/:a');