Skip to content

Commit

Permalink
Merge pull request #57 from seanpdoyle/patch-1
Browse files Browse the repository at this point in the history
Provide better context for `subject()` deprecation
  • Loading branch information
rwjblue committed Dec 9, 2015
2 parents 21472fe + 4dd90b8 commit b632138
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ember-test-helpers/test-module-for-component.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default TestModule.extend({
this.setupSteps.push(this.setupComponentUnitTest);
} else {
this.callbacks.subject = function() {
throw new Error("component integration tests do not support `subject()`.");
throw new Error("component integration tests do not support `subject()`. Instead, render the component as if it were HTML: `this.render('<my-component foo=true>');`. For more information, read: http://guides.emberjs.com/v2.2.0/testing/testing-components/");
};
this.setupSteps.push(this.setupComponentIntegrationTest);
this.teardownSteps.unshift(this.teardownComponent);
Expand Down

0 comments on commit b632138

Please sign in to comment.