-
Notifications
You must be signed in to change notification settings - Fork 231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unit Testing Models with Associations/Relationships Fail #598
Comments
It's worth mentioning that there are no FIXTURES array defined for the models, since thus far testing I've done has been using an api-stub server in integration testing. Not sure if that's a contributing factor. |
please reopen on: https://github.com/rpflorence/ember-qunit |
Reopened on emberjs/ember-qunit#39 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When unit testing a model that makes use of
DS.belongsTo()
thecreateRecord()
fails with the following error:It appears that in order to create a record of a model, it expects its associated or related model to already exist. What's going on?
Here are the models and test
/app/models/client.js
:/app/models/invoice.js
:tests/models/invoice.js
:The text was updated successfully, but these errors were encountered: