After looking for examples on how to do proper testing for Ember classes, I have found two different approaches when instantiating them. Supposing we have a
MyController class to test:
// Direct method: var myController = App.MyController.create(); // Container method: var myController = App.__container__.lookup('controller:my');
What’s the difference between them, and what’s the recommended way to go?