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] Adds options checking ability to debug/deprecation test helpers #16520

Merged
merged 1 commit into from
Apr 14, 2018

Conversation

pzuraq
Copy link
Contributor

@pzuraq pzuraq commented Apr 14, 2018

With Ember v3 we now require that deprecations receive id and until
options. It's a hard error if they are not included, as happened
recently. This PR adds the ability to check for options when asserting
in debug helpers, so we can assert that all deprecations internally
receive these options. It also updates all outstanding cases where an
id/until value were not passed.

With Ember v3 we now require that deprecations receive `id` and `until`
options. It's a hard error if they are not included, as happened
recently. This PR adds the ability to check for options when asserting
in debug helpers, so we can assert that all deprecations internally
receive these options. It also updates all outstanding cases where an
id/until value were not passed.
@pzuraq
Copy link
Contributor Author

pzuraq commented Apr 14, 2018

In general I matched the existing style of the MethodCallTracker class, but I'd be happy to refactor it to use modern class syntax and idioms. Wanted to make sure this was the correct direction before diving into that.

@rwjblue
Copy link
Member

rwjblue commented Apr 14, 2018

Thank you very much for making sure the ember-dev assertion helpers flag this!

@rwjblue rwjblue merged commit 76015f6 into emberjs:master Apr 14, 2018
@rwjblue
Copy link
Member

rwjblue commented Apr 14, 2018

Will need to cherry pick this into beta...

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