-
-
Notifications
You must be signed in to change notification settings - Fork 257
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
setting this.render is broken in 0.7.21 #359
Comments
I'm somewhat surprised that that API has ever worked :D |
Any opinions on this? Would you consider reverting the read-only assertion? |
IMHO, using @kellyselden - That change was added for good reason (folks were clobbering things in a way that left them in a horribly broken state and they had no clue). I don't really know how to weigh the volume of that vs the volume of the users of ember-test-setup. If we need to treat this as a regression we should allow clobbering |
@rwjblue You mean a deprecation when this.render from this library is run, not when this.render is set, correct? |
@kellyselden - I think I meant both? But the important one is that we deprecate using |
@rwjblue Hmm I guess that would be ok. So then users of ember-test-setup would get deprecations until this.render is removed from here, then the warnings would disappear? |
FWIW I'm pretty opposed to reverting this. We have implemented these guards for a good reason and I don't think people should ever override the functions that we set up here. If |
I tend to agree @Turbo87. IMHO a better (more aligned API) would be for users of ember-test-setup to use an imported |
@kellyselden I still think you shouldn't overwrite |
https://github.com/kellyselden/ember-test-setup/blob/master/addon-test-support/-setup-render.js#L9 was working on the assumption in 0.7.20 that I could override
this.render
. It was broken in #349. I understand why it was changed, but it sucks I can't have my desired API anymore.The text was updated successfully, but these errors were encountered: