Skip to content

Commit

Permalink
test demonstrating issue emberjs#3851 and emberjs#1764 possibly relat…
Browse files Browse the repository at this point in the history
…ed to emberjs#3677
  • Loading branch information
arenoir committed Oct 14, 2015
1 parent 5e6820d commit 71a6ede
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/ember-data/tests/integration/records/save-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ test("Repeated failed saves keeps the record in uncommited state", function() {
});

env.adapter.createRecord = function(store, type, snapshot) {
return Ember.RSVP.reject();
var error = new DS.InvalidError([{title: 'not valid'}]);

return Ember.RSVP.reject(error);
};

run(function() {
Expand Down

0 comments on commit 71a6ede

Please sign in to comment.