Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Add destroy step to instance-initializer test blueprint #110

Merged
merged 1 commit into from
Jun 15, 2016

Conversation

bttf
Copy link
Contributor

@bttf bttf commented May 11, 2016

Had multiple instance-initializer tests generated and came across this:

Assertion Failed: You cannot use the same root element (body) multiple times in an Ember.Application

Presumably it was because applications were getting created but not destroyed, so implemented a destroy step in the blueprint. That fixed it but if there's a better way please let me know

appInstance = application.buildInstance();
});
});

afterEach(function() {
application.destroy();
Copy link
Member

Choose a reason for hiding this comment

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

We should import and use the run-destroy test helper...

@bttf
Copy link
Contributor Author

bttf commented May 17, 2016

pinging @rwjblue

@rwjblue rwjblue merged commit 90dab17 into ember-cli:master Jun 15, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants