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 28154313..b23f0ca4 100644
--- a/test/ngResource/resourceSpec.js
+++ b/test/ngResource/resourceSpec.js
@@ -150,6 +150,13 @@ describe("resource", function() {
R.get({a:6, b:7, c:8});
});
+ it('should not collapsed the url into an empty string', function() {
+ var R = $resource('/:foo/:bar/');
+
+ $httpBackend.when('GET', '/').respond('{}');
+
+ R.get({});
+ });
it('should support escaping colons in url template', function() {
var R = $resource('http://localhost\\:8080/Path/:a/\\:stillPath/:b');