{"action":"created","issue":{"url":"https://api.github.com/repos/emberjs/ember.js/issues/12072","labels_url":"https://api.github.com/repos/emberjs/ember.js/issues/12072/labels{/name}","comments_url":"https://api.github.com/repos/emberjs/ember.js/issues/12072/comments","events_url":"https://api.github.com/repos/emberjs/ember.js/issues/12072/events","html_url":"https://github.com/emberjs/ember.js/issues/12072","id":100673837,"number":12072,"title":"Cant set attributes in component test in angle-bracket components","user":{"login":"shaunc","id":193170,"avatar_url":"https://avatars.githubusercontent.com/u/193170?v=3","gravatar_id":"","url":"https://api.github.com/users/shaunc","html_url":"https://github.com/shaunc","followers_url":"https://api.github.com/users/shaunc/followers","following_url":"https://api.github.com/users/shaunc/following{/other_user}","gists_url":"https://api.github.com/users/shaunc/gists{/gist_id}","starred_url":"https://api.github.com/users/shaunc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shaunc/subscriptions","organizations_url":"https://api.github.com/users/shaunc/orgs","repos_url":"https://api.github.com/users/shaunc/repos","events_url":"https://api.github.com/users/shaunc/events{/privacy}","received_events_url":"https://api.github.com/users/shaunc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-13T01:52:50Z","updated_at":"2015-08-13T02:56:20Z","closed_at":null,"body":"Using Ember 1.13.7, with addon generated by ember 1.13.8, I have a component `x-foo`:\r\n\r\n```\r\nimport Ember from 'ember';\r\nimport layout from './template';\r\n\r\nexport default Ember.Component.extend({\r\n  layout: layout,\r\n\r\n  didReceiveAttrs() {\r\n    console.log(\"didReceiveAttrs; foo:\", this.getAttr('foo'));\r\n  },\r\n  willRender() {\r\n    console.log(\"willRender; foo:\", this.getAttr('foo'));\r\n  }\r\n});\r\n```\r\nWhen I instantiate in a test using angle-bracket notation (with feature flags turned on), I can't set attributes. Using the following test, \"didReceiveAttrs\" and \"willRender\" are never called.\r\n\r\n```\r\nimport { moduleForComponent, test } from 'ember-qunit';\r\nimport hbs from 'htmlbars-inline-precompile';\r\n\r\nmoduleForComponent('x-foo', 'Integration | Component | x foo', {\r\n  integration: true\r\n});\r\n\r\ntest('it renders', function(assert) {\r\n  assert.expect(0);\r\n\r\n\r\n  // Set any properties with this.set('myProperty', 'value');\r\n  // Handle any actions with this.on('myAction', function(val) { ... });\r\n\r\n  this.set('foo', 'bar');\r\n  this.render(hbs`<x-foo foo={{mut foo}} />`);```\r\n  this.set('foo', 'baz');\r\n}\r\n```\r\n   \r\nThey are called when I run with the following render instead.\r\n\r\n    this.render(hbs`{{x-foo foo=(mut foo)}}`);\r\n   \r\nIn this case the output in the console is:\r\n\r\n```\r\ndidReceiveAttrs; foo: bar\r\nwillRender; foo: bar\r\ndidReceiveAttrs; foo: baz\r\nwillRender; foo: baz```\r\n"},"comment":{"url":"https://api.github.com/repos/emberjs/ember.js/issues/comments/130512915","html_url":"https://github.com/emberjs/ember.js/issues/12072#issuecomment-130512915","issue_url":"https://api.github.com/repos/emberjs/ember.js/issues/12072","id":130512915,"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-08-13T02:56:20Z","updated_at":"2015-08-13T02:56:20Z","body":"Can you submit a failing test case that we can pull into #12011 so that we can ensure this is fixed there (it may already be fixed though)?"}}