@cga wrote:
Hi there, I try to use ember-simple-auth for a project. Basically, everything works fine.
Only with the tests I have an issue: ember-simple-auth extends the beforeModel hook in the application route. So far, so good.
Now I have some unit-tests checking my own logic in the beforeModel hook in the application route. If I run them separated, they pass as expected. But if a run all the tests, beginning with some acceptance-tests, the unit-test does not pass any more, as the changes made by ember-simple-auth are still in place when I call beforeModel in my unit test.
Thus, I would probably need some tear-down code after my acceptance tests. I cannot find a way to reset the application to its original state. Can somebody give me a pointer with this?
Thank you very much!
Posts: 4
Participants: 2