{"action":"created","issue":{"url":"https://api.github.com/repos/switchfly/ember-test-helpers/issues/114","labels_url":"https://api.github.com/repos/switchfly/ember-test-helpers/issues/114/labels{/name}","comments_url":"https://api.github.com/repos/switchfly/ember-test-helpers/issues/114/comments","events_url":"https://api.github.com/repos/switchfly/ember-test-helpers/issues/114/events","html_url":"https://github.com/switchfly/ember-test-helpers/issues/114","id":113747087,"number":114,"title":"Injecting services for component integration tests doesn't seem to work","user":{"login":"devinus","id":4836,"avatar_url":"https://avatars.githubusercontent.com/u/4836?v=3","gravatar_id":"","url":"https://api.github.com/users/devinus","html_url":"https://github.com/devinus","followers_url":"https://api.github.com/users/devinus/followers","following_url":"https://api.github.com/users/devinus/following{/other_user}","gists_url":"https://api.github.com/users/devinus/gists{/gist_id}","starred_url":"https://api.github.com/users/devinus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devinus/subscriptions","organizations_url":"https://api.github.com/users/devinus/orgs","repos_url":"https://api.github.com/users/devinus/repos","events_url":"https://api.github.com/users/devinus/events{/privacy}","received_events_url":"https://api.github.com/users/devinus/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-10-28T05:33:00Z","updated_at":"2015-11-02T19:32:37Z","closed_at":"2015-11-02T18:40:33Z","body":"The following code using `this.inject.service` never seems to inject the service into the component before trying to render.\r\n\r\n```\r\n/* jshint expr:true */\r\nimport { expect } from 'chai';\r\nimport {\r\n  describeComponent,\r\n  it\r\n} from 'ember-mocha';\r\nimport hbs from 'htmlbars-inline-precompile';\r\n\r\ndescribeComponent(\r\n  'provider-options',\r\n  'Integration: ProviderOptionsComponent',\r\n  {\r\n    integration: true\r\n  },\r\n  function() {\r\n    it('renders', function() {\r\n      // Set any properties with this.set('myProperty', 'value');\r\n      // Handle any actions with this.on('myAction', function(val) { ... });\r\n      // Template block usage:\r\n      // this.render(hbs`\r\n      //   {{#provider-options}}\r\n      //     template content\r\n      //   {{/provider-options}}\r\n      // `);\r\n\r\n      this.inject.service('i18n'); // <= This doesn't seem to inject the i18n service\r\n      this.render(hbs`{{provider-options}}`);\r\n      expect(this.$()).to.have.length(1);\r\n    });\r\n  }\r\n);\r\n```"},"comment":{"url":"https://api.github.com/repos/switchfly/ember-test-helpers/issues/comments/153133622","html_url":"https://github.com/switchfly/ember-test-helpers/issues/114#issuecomment-153133622","issue_url":"https://api.github.com/repos/switchfly/ember-test-helpers/issues/114","id":153133622,"user":{"login":"rwjblue","id":12637,"avatar_url":"https://avatars.githubusercontent.com/u/12637?v=3","gravatar_id":"","url":"https://api.github.com/users/rwjblue","html_url":"https://github.com/rwjblue","followers_url":"https://api.github.com/users/rwjblue/followers","following_url":"https://api.github.com/users/rwjblue/following{/other_user}","gists_url":"https://api.github.com/users/rwjblue/gists{/gist_id}","starred_url":"https://api.github.com/users/rwjblue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwjblue/subscriptions","organizations_url":"https://api.github.com/users/rwjblue/orgs","repos_url":"https://api.github.com/users/rwjblue/repos","events_url":"https://api.github.com/users/rwjblue/events{/privacy}","received_events_url":"https://api.github.com/users/rwjblue/received_events","type":"User","site_admin":false},"created_at":"2015-11-02T19:32:37Z","updated_at":"2015-11-02T19:32:37Z","body":"Though I personally prefer to test the actual template invocation that will be used."}}