Skip to content

Commit

Permalink
Move stuff around, and cleanup deprecated stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
job13er committed Mar 3, 2017
1 parent 8e2ef1b commit 903aeb5
Show file tree
Hide file tree
Showing 24 changed files with 22 additions and 955 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Expand Up @@ -80,9 +80,10 @@ export function model (name, dependencies, options = {}) {
export function serializer (name, dependencies = [], options = {}) {
options.needs = dependencies

// if the model for this serializer isn't a dependency, add it
if (!options.needs.includes(`model:${name}`)) {
options.needs.push(`model:${name}`)
// if the serializer isn't a dependency, add it, this is b/c we're using setupModelTest() so the model is already
// going to be loaded as the primary element under test, not the serializer, so we need to add the serializer
if (!options.needs.includes(`serializer:${name}`)) {
options.needs.push(`serializer:${name}`)
}

if (!options.unit && !options.integration) {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion addon/index.js
@@ -1,4 +1,4 @@
/**
* Nothing to export, all content for this addon lives in test-support
* Nothing to export, all content for this addon lives in addon-test-support
*/
export default {}
59 changes: 0 additions & 59 deletions test-support/helpers/ember-test-utils/describe-component.js

This file was deleted.

61 changes: 0 additions & 61 deletions test-support/helpers/ember-test-utils/describe-model.js

This file was deleted.

70 changes: 0 additions & 70 deletions test-support/helpers/ember-test-utils/describe-module.js

This file was deleted.

5 changes: 0 additions & 5 deletions test-support/helpers/ember-test-utils/index.js

This file was deleted.

0 comments on commit 903aeb5

Please sign in to comment.