Refactor Customizations to have deeper URLs

This commit is contained in:
Robin Ward
2015-08-06 12:43:56 -04:00
parent 92b2d8c247
commit 0932e82508
25 changed files with 294 additions and 378 deletions

View File

@ -97,6 +97,15 @@ test('destroyRecord', function(assert) {
});
});
test('destroyRecord when new', function(assert) {
const store = createStore();
const w = store.createRecord('widget', {name: 'hello'});
store.destroyRecord('widget', w).then(function(result) {
assert.ok(result);
});
});
test('find embedded', function() {
const store = createStore();
return store.find('fruit', 1).then(function(f) {