Closed Charizard closed 6 years ago
Your 100% right, I have changed all my tests, but forgot to change the error message .. gimme a moment to fix that
*You are 😆
Thanks for the awesome addon though.
This is now fixed in v2.13.24
I made it so you can not screw it up anymore since now .. you only have to do
manualSetup(this);
and it will so the right thing
Thanks for pointing out he message being wrong :)
FWIW I would recommend exporting a setupFactoryGuy()
function for the new testing APIs like this:
export function setupFactoryGuy(hooks) {
hooks.beforeEach(function() {
manualSetup(this.owner);
});
}
good suggestion .. stay tuned for that one
v2.13.26 now has setupFactoryGuy(hooks) method @Turbo87
awesome, thanks! seem like I can remove our custom one then 😉
With the new emberjs/rfcs#232 RFC, the error message when Factory Guy can't access the application instance is wrong.
This
should change to