diff options
| author | simpulton | 2012-04-20 01:31:25 -0700 |
|---|---|---|
| committer | Igor Minar | 2012-04-20 12:32:33 -0700 |
| commit | e61fd1b43a55496c11c63da7ca2fc05b88d44043 (patch) | |
| tree | 007761363c98350ea42cda871b73dfb62d49b1a0 /test/ngMock/angular-mocksSpec.js | |
| parent | ce15a3e0491f7acafcdf0ff07f75d0c2c9819164 (diff) | |
| download | angular.js-e61fd1b43a55496c11c63da7ca2fc05b88d44043.tar.bz2 | |
feat($resource): support HTTP PATCH method
Properly serialize data into request body instead of url.
Closes #887
Diffstat (limited to 'test/ngMock/angular-mocksSpec.js')
| -rw-r--r-- | test/ngMock/angular-mocksSpec.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ngMock/angular-mocksSpec.js b/test/ngMock/angular-mocksSpec.js index 4b2666b7..22c91a4d 100644 --- a/test/ngMock/angular-mocksSpec.js +++ b/test/ngMock/angular-mocksSpec.js @@ -814,7 +814,7 @@ describe('ngMock', function() { describe('expect/when shortcuts', function() { angular.forEach(['expect', 'when'], function(prefix) { - angular.forEach(['GET', 'POST', 'PUT', 'DELETE', 'JSONP'], function(method) { + angular.forEach(['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'JSONP'], function(method) { var shortcut = prefix + method; it('should provide ' + shortcut + ' shortcut method', function() { hb[shortcut]('/foo').respond('bar'); |
