title: EmberJS Service Injection for Unit Tests (Ember QUnit)
body: <p>Specs:</p>
  
  <ul>
  <li>Ember version: 1.13.8</li>
  <li>node: 0.10.33</li>
  <li>npm: 2.13.4</li>
  </ul>
  
  <p>I have</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>import Alias from "../../../services/alias";
  ....
  
  moduleFor("controller:test", "Controller: test", {
    integration: true,
  
    beforeEach: function() {
      this.register('service:alias', Alias, {singleton: true});
      this.inject.service('alias', { as: 'alias' });
      this.advanceReadiness();
    },
  });
  ...
  
  test('Alias Alias Alias ', function(assert) {
    var controller = this.subject();
  
    //sample function
    controller.send("test");
    assert.equal(true, controller.alias.get("alias"), "alias should be true");
  });</code></pre>
  </div>
  </div>
  
  (Using 'alias' as example because I'm not allow to show actual code)</p>
  
  <p>I've tried to initialize the service but during Ember Qunit tests, controllers do not have the services injected to them.</p>
  
  <p>I've tried putting the injection in: init() instead of beforeEach, doesn't work either...</p>
  
  <p>How do I inject it during unit tests?</p>
  
  <p>I put break points in the debugger to see if my controllers have the service, it doesn't during tests. It's fine on normal ember serve, however.</p>