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

make getApplication public #336

Merged
merged 2 commits into from
Mar 19, 2018
Merged

Conversation

snewcomer
Copy link
Contributor

@snewcomer snewcomer commented Mar 3, 2018

One use case I have is I would like to call setApplication(Application.create({ autoboot: false, custom: 'bar' }); or something similar. However, this may be a bit dangerous because this sets the application for the rest of the test run. In order to ensure further calls to get the application instance aren't this Application instance, I need to reset it with the old application instance using this.oldAppInstance = getApplication() before setting.

Lmk what you think!

Ref #335

Copy link
Member

@rwjblue rwjblue left a comment

Choose a reason for hiding this comment

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

Seems ok, needs docs changes to make it public though...

@snewcomer
Copy link
Contributor Author

Should we have the tests passing before merging this? Took a shot with #341 but may need some help.

@rwjblue rwjblue merged commit 22815d2 into emberjs:master Mar 19, 2018
@rwjblue
Copy link
Member

rwjblue commented Mar 19, 2018

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants