-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
Unit testing routes? #38
Labels
Comments
Old issue is old, but here is how I did it:
|
you can also have a look at the now official |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I'm trying to unit test a route using ember-mocha. On the guides they show how to do this with the default q-unit framework, but I'm not sure ember-mocha is acting the same way. In the guide example
this.subject()
will return an instance of the module being tested. When I try to us emeber-mocha with a describeModule('route:someRoute'...)this.subject()
returns the class and not an instance of the route like expected.The text was updated successfully, but these errors were encountered: