I see that every generated test from ember-cli uses this.subject()
. I read the ember-cli docs and it says:
“this.subject() calls the factory for the object specified by the fullname and will return an instance of the object.”
Does that mean that Ember calls the create method on the service/component/etc under test with the fullname specified in moduleFor?
moduleFor('service:auth', 'Unit | Service | auth', {});
test('auth exists', function(assert) {
var auth = this.subject();
});
So for this test, would the fullname be “service:auth”? Where can I find more on that fullname convention? I think I might be googling the wrong terms. Thanks in advance!