According to ember guides testing a controller that has needs is like this:
moduleFor('controller:comments', 'Comments Controller', {
needs: ['controller:post']
});
In my case I have a custom CommentsController
but i don't have a custom PostController
and Ember creates one for me.
But ember-qunit complains that it cannot find controller:post
. If i explicitly define it, it works fine.
Do i have to explicitly define every controller that ember-qunit tests?