{"action":"opened","issue":{"url":"https://api.github.com/repos/emberjs/ember.js/issues/11557","labels_url":"https://api.github.com/repos/emberjs/ember.js/issues/11557/labels{/name}","comments_url":"https://api.github.com/repos/emberjs/ember.js/issues/11557/comments","events_url":"https://api.github.com/repos/emberjs/ember.js/issues/11557/events","html_url":"https://github.com/emberjs/ember.js/issues/11557","id":91152422,"number":11557,"title":"Cannot test component with yield block","user":{"login":"mmahalwy","id":3749095,"avatar_url":"https://avatars.githubusercontent.com/u/3749095?v=3","gravatar_id":"","url":"https://api.github.com/users/mmahalwy","html_url":"https://github.com/mmahalwy","followers_url":"https://api.github.com/users/mmahalwy/followers","following_url":"https://api.github.com/users/mmahalwy/following{/other_user}","gists_url":"https://api.github.com/users/mmahalwy/gists{/gist_id}","starred_url":"https://api.github.com/users/mmahalwy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmahalwy/subscriptions","organizations_url":"https://api.github.com/users/mmahalwy/orgs","repos_url":"https://api.github.com/users/mmahalwy/repos","events_url":"https://api.github.com/users/mmahalwy/events{/privacy}","received_events_url":"https://api.github.com/users/mmahalwy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-26T04:49:00Z","updated_at":"2015-06-26T04:49:00Z","closed_at":null,"body":"I cannot get the compiled html to be inputted into the component via the yield block expression. See test:\r\n```\r\nimport { moduleForComponent, test } from 'ember-qunit';\r\n\r\nmoduleForComponent('pro-tab-link', 'Unit | Component | pro tab link', {\r\n  // Specify the other units that are required for this test\r\n  // needs: ['component:foo', 'helper:bar'],\r\n  unit: true\r\n});\r\n\r\ntest('it renders', function(assert) {\r\n  assert.expect(3);\r\n\r\n  // Creates the component instance\r\n  var component = this.subject({\r\n    template: Ember.Handlebars.compile(\r\n      \"<h1>Hello world</h1>\"\r\n    )\r\n  });\r\n\r\n  console.log(component);\r\n  assert.equal(component._state, 'preRender');\r\n\r\n  var $component = this.append();\r\n\r\n  Ember.run(function() {\r\n   component.set('isOpen', true);\r\n });\r\n\r\n  console.log(component);\r\n  console.log($component.html());\r\n\r\n  assert.equal(component._state, 'inDOM');\r\n  assert.ok(component.isOpen);\r\n});\r\n```\r\nAnd the template:\r\n``\r\nif isOpen\r\n  == yield\r\n```\r\nFor some reason, the h1 tag is not being passed into the yield of the component. How do I get this working? Currently tried on ember 2.0.0.beta-1 and 1.13.2. This is also missing from the docs for 1.11 and 1.12 but present in 1.10. "}}