aboutsummaryrefslogtreecommitdiffstats
path: root/test/ngResource/resourceSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/ngResource/resourceSpec.js')
-rw-r--r--test/ngResource/resourceSpec.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/ngResource/resourceSpec.js b/test/ngResource/resourceSpec.js
index 6a709fb7..52395297 100644
--- a/test/ngResource/resourceSpec.js
+++ b/test/ngResource/resourceSpec.js
@@ -106,6 +106,13 @@ describe("resource", function() {
R.get({a: 'foo', b: 'bar'});
});
+ it('should support an unescaped url', function() {
+ var R = $resource('http://localhost:8080/Path/:a');
+
+ $httpBackend.expect('GET', 'http://localhost:8080/Path/foo').respond();
+ R.get({a: 'foo'});
+ });
+
it('should correctly encode url params', function() {
var R = $resource('/Path/:a');