From 29541e735d3c01acc2ff18e371858e9eba14fc0c Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Sun, 11 Nov 2012 12:07:26 +0100 Subject: 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. --- test/ngResource/resourceSpec.js | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'test/ngResource') 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(); -- cgit v1.2.3