emberjs/ember.js — pull request #2628 by teddyzeenny (2013-05-04 15:44:07+00:00)
Title: Ember testing capture exceptions thrown in promises

This allows us to capture exceptions thrown inside the `onSuccess` handlers.

The rejection handler can be customized based on the testing framework by overriding `Ember.Test.failure`. Example:

```javascript
Ember.Test.failure = function(error) {
ok(false, error);
});
```