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

remove container related deprecation warnings #4155

Merged
merged 1 commit into from
Feb 12, 2016
Merged

remove container related deprecation warnings #4155

merged 1 commit into from
Feb 12, 2016

Conversation

sly7-7
Copy link
Contributor

@sly7-7 sly7-7 commented Feb 11, 2016

Closes #4151

It seems like some code was forgotten during the addonization.
Thanks to @rwjblue pointing it to me.

@pangratz
Copy link
Member

#4158 fixes the failing test in this PR. After that one has merged and this PR is rebased, I think this is good to go 🚀

@sly7-7
Copy link
Contributor Author

sly7-7 commented Feb 12, 2016

@pangratz I was working on the failing test too, I've integrated the change in this PR. I've also removed the env.container.destroy thing (is this necessary though ?)

@pangratz
Copy link
Member

We are not consistent with properly destroying the env created via setupSore/createStore in the tests. Sometimes only the store is destroyed, sometimes the container, sometimes both 😆 Eventually the test setup should be consistent.

I've also removed the env.container.destroy thing (is this necessary though ?)

I think it should be kept for now. It doesn't hurt I guess...

@sly7-7
Copy link
Contributor Author

sly7-7 commented Feb 12, 2016

@pangratz I will bring back the env.container.destroy. It was just that the tests were passing without this (I like to remove LOC when the tests pass 😄 )
Anyway, I don't know if it would be possible, but it would be great if we could add a unique afterEach hook doing the dirty work for all the tests. So we don't have to care about destroying (or not) env in each tests.

@rwjblue
Copy link
Member

rwjblue commented Feb 12, 2016

I don't know if it would be possible, but it would be great if we could add a unique afterEach hook doing the dirty work for all the tests. So we don't have to care about destroying (or not) env in each tests.

We can add a QUnit.testDone (see here).

@rwjblue
Copy link
Member

rwjblue commented Feb 12, 2016

But I suppose that can be a separate PR since this passes fine without...

@rwjblue
Copy link
Member

rwjblue commented Feb 12, 2016

This looks good to me...

bmac added a commit that referenced this pull request Feb 12, 2016
remove container related deprecation warnings
@bmac bmac merged commit 3db2848 into emberjs:master Feb 12, 2016
@bmac
Copy link
Member

bmac commented Feb 12, 2016

Thanks @sly7-7

@sly7-7 sly7-7 deleted the restore-owner branch February 12, 2016 14:16
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.

4 participants