Before adding my "needs" the controller looked like this
var MyController = Ember.ArrayController.extend({
wat: function() {
return true;
}.property()
});
This allowed me to write really simple unit tests like so
test('wat always returns true ... huh', function() {
var controller = new MyController();
var wat = controller.get('wat');
ok(wat);
});
But after I added a "needs" block like so ...
var MyController = Ember.ArrayController.extend({
needs: 'application',
wat: function() {
return true;
}.property()
});
The "new up" won't work and QUnit / ember is throwing an error like so
"Please be sure this controller was instantiated with a container"
Without saying "pull in / use ember-qunit" what other options do I have here? Can I simply slam in a "stub" to satisfy the container requirement?