Skip to content

[CLEANUP] use methods from utils module directly - #4030

Merged
bmac merged 1 commit into
warp-drive-data:masterfrom
pangratz:cleanup-utils-tests
Dec 28, 2015
Merged

[CLEANUP] use methods from utils module directly#4030
bmac merged 1 commit into
warp-drive-data:masterfrom
pangratz:cleanup-utils-tests

Conversation

@pangratz

Copy link
Copy Markdown
Contributor

Since ember-data is a proper addon now, the utility functions in
ember-data/-private/utils can now be imported and invoked within the
tests.

assertPolymorphicType() is now tested directly instead of relying on
it being used within Model.get('relationship').add().

modelHasAttributeOrRelationshipNamedType hasn't been tested since it
couldn't be imported in the tests.

Since ember-data is a proper addon now, the utility functions in
`ember-data/-private/utils` can now be imported and invoked within the
tests.

`assertPolymorphicType()` is now tested directly instead of relying on
it being used within `Model.get('relationship').add()`.

`modelHasAttributeOrRelationshipNamedType` hasn't been tested since it
couldn't be imported in the tests.
bmac added a commit that referenced this pull request Dec 28, 2015
[CLEANUP] use methods from utils module directly
@bmac
bmac merged commit ef99f99 into warp-drive-data:master Dec 28, 2015
@pangratz
pangratz deleted the cleanup-utils-tests branch December 28, 2015 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants