angular/angular.js — pull request #6744 by sqren (2014-03-19 07:47:27+00:00)
Title: Added response to whenPOST mock

The ```whenPOST``` method should return a response object containing status, response body and headers. If omitted the following error will be thrown:

```Uncaught TypeError: Cannot read property '2' of undefined```

The documentation doesn't make it very clear, so I think it will be appropriate to add.