Skip to content
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

[BUGFIX 5720] - assert that replacing has-many with non-array throws assertion #5721

Merged
merged 1 commit into from
Oct 26, 2018

Conversation

sbatson5
Copy link
Contributor

Fixes: #5720

Assert that objects is an array or has array-like methods and return a more meaningful message when that condition is not met.

@sbatson5 sbatson5 force-pushed the assert-replacing-has-many branch from ab64536 to e094db7 Compare October 26, 2018 20:40
@sbatson5 sbatson5 force-pushed the assert-replacing-has-many branch from e094db7 to 9a5e2c3 Compare October 26, 2018 20:54
Copy link
Contributor

@runspired runspired left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall this is awesome! Especial thanks for including the appropriate test.

I wish I weren't accepting an "old style" test (see any of the recent test cleanup PRs for examples of "new style", but given the number of tests in this file it seems best to me to leave it as is and refactor it with the rest of them in one go.

@runspired runspired merged commit 2388451 into emberjs:master Oct 26, 2018
@sbatson5 sbatson5 deleted the assert-replacing-has-many branch October 26, 2018 22:28
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