diff options
| author | Igor Minar | 2012-01-10 10:17:05 -0800 |
|---|---|---|
| committer | Igor Minar | 2012-01-13 13:53:07 -0800 |
| commit | 46691c2721735c27426b721d780e8816d502b9f2 (patch) | |
| tree | 53ff9471d7fa799bf6186ea21bf969a8d9b7b359 /test/angular-mocksSpec.js | |
| parent | e7a23e4b6585d497112935a7d00cb6906d8c8417 (diff) | |
| download | angular.js-46691c2721735c27426b721d780e8816d502b9f2.tar.bz2 | |
fix($http): remove support for PATCH + better whenXXX, expectXXX api
- there are too many unknowns about PATCH, so I'm dropping its support until we know that this is actually useful
- expectGET, expectHEAD and expectJSON (and the same for whenXXX) should not require response data to be specified
Diffstat (limited to 'test/angular-mocksSpec.js')
| -rw-r--r-- | test/angular-mocksSpec.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/angular-mocksSpec.js b/test/angular-mocksSpec.js index 153c2e33..073d6cd1 100644 --- a/test/angular-mocksSpec.js +++ b/test/angular-mocksSpec.js @@ -819,9 +819,9 @@ describe('ngMock', function() { }); - describe('expect/when shorcuts', function() { + describe('expect/when shortcuts', function() { angular.forEach(['expect', 'when'], function(prefix) { - angular.forEach(['GET', 'POST', 'PUT', 'DELETE', 'PATCH', 'JSONP'], function(method) { + angular.forEach(['GET', 'POST', 'PUT', 'DELETE', 'JSONP'], function(method) { var shortcut = prefix + method; it('should provide ' + shortcut + ' shortcut method', function() { hb[shortcut]('/foo').respond('bar'); |
