aboutsummaryrefslogtreecommitdiffstats
path: root/test/ngResource/resourceSpec.js
diff options
context:
space:
mode:
authorIgor Minar2012-11-11 12:07:26 +0100
committerIgor Minar2012-11-11 12:07:26 +0100
commit29541e735d3c01acc2ff18e371858e9eba14fc0c (patch)
tree4de39db3f8b54ea63d59e0b5d19f036ec5dc889c /test/ngResource/resourceSpec.js
parentf5b567d44b93d3885cf4ee7be5480d66ce2d4fb0 (diff)
downloadangular.js-29541e735d3c01acc2ff18e371858e9eba14fc0c.tar.bz2
revert($resource): support custom headers per action
This reverts commit b936e52874fe0173c6d4ba0a84f45deac67518ac. This commit introduces a feature and should haven't been merged into the stable branch.
Diffstat (limited to 'test/ngResource/resourceSpec.js')
-rw-r--r--test/ngResource/resourceSpec.js16
1 files changed, 0 insertions, 16 deletions
diff --git a/test/ngResource/resourceSpec.js b/test/ngResource/resourceSpec.js
index dc837f80..3c14a87a 100644
--- a/test/ngResource/resourceSpec.js
+++ b/test/ngResource/resourceSpec.js
@@ -14,14 +14,7 @@ describe("resource", function() {
},
patch: {
method: 'PATCH'
- },
- conditionalPut: {
- method: 'PUT',
- headers: {
- 'If-None-Match': '*'
- }
}
-
});
callback = jasmine.createSpy();
}));
@@ -184,15 +177,6 @@ describe("resource", function() {
});
- it('should send correct headers', function() {
- $httpBackend.expectPUT('/CreditCard/123', undefined, function(headers) {
- return headers['If-None-Match'] == "*";
- }).respond({id:123});
-
- CreditCard.conditionalPut({id: {key:123}});
- });
-
-
it("should read partial resource", function() {
$httpBackend.expect('GET', '/CreditCard').respond([{id:{key:123}}]);
var ccs = CreditCard.query();