-
-
Notifications
You must be signed in to change notification settings - Fork 155
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
subject helper in moduleForModel reuses container for all tests #81
Comments
Thank you for tracking this down. I'm working on some internal refactoring (mostly build related), and will tackle this once that is done. |
What would be the workaround for this? How do I instantiate my own objects instead of using |
Same behavior for testing controllers. As temporary workaround I invoke a function which clears the parent scope (subject) properties which I need. Good to know it's not intentional |
We just ran into an issue that seems related to this where the store instance leaked between tests. In the second test a We worked around it by using
|
Fixed by emberjs/ember-test-helpers#28. |
While attempting to debug this jsbin from emberjs/data#2112 I noticed this check seems to cause
this.subject()
to reuse the same container for all the tests in a module. Is that intentional?The text was updated successfully, but these errors were encountered: