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 release] Ensure Route actions can be unit tested. #11664

Merged
merged 1 commit into from
Jul 6, 2015

Conversation

rwjblue
Copy link
Member

@rwjblue rwjblue commented Jul 6, 2015

With ember-qunit@0.3.x the normal router injection for all Routes looked up from the container was not set, so the guarding this.router was enough to force us down the else path in Ember.Route#send.

ember-qunit@0.4.x fixes many bugs with the previous manual container setup, by doing exactly what a "normal" app would do and use its registry/container pair. This is a huge improvement, but unfortunately broke the guard that previously existed (since this.router was now the Ember.Router instance due to the aforementioned injection rule).


Fixes #11663.

With ember-qunit@0.3.x the normal `router` injection for all Routes
looked up from the container was not set, so the guarding `this.router`
was enough to force us down the `else` path in `Ember.Route#send`.

ember-qunit@0.4.x fixes many bugs with the previous manual container
setup, by doing exactly what a "normal" app would do and use its
registry/container pair. This is a **huge** improvement, but
unfortunately broke the guard that previously existed (since
`this.router` was now the `Ember.Router` instance due to the
aforementioned injection rule).
stefanpenner added a commit that referenced this pull request Jul 6, 2015
[BUGFIX release] Ensure Route actions can be unit tested.
@stefanpenner stefanpenner merged commit 15aa724 into emberjs:master Jul 6, 2015
@rwjblue rwjblue deleted the ensure-route-unit-tests-work branch July 20, 2015 20:24
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.

[REGRESSION] Route.send is no longer unit testable
2 participants