Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for integration: 'legacy' #121

Merged
merged 1 commit into from
Nov 23, 2015

Conversation

rwjblue
Copy link
Member

@rwjblue rwjblue commented Nov 23, 2015

This semantics of the integration flag have changed in a backwards-incompatible way since v0.4.3. This corresponds to an ember upgrade (using ember-cli) between v1.12 and v1.13.

In order to ease this upgrade path for ember-cli users, integration: 'legacy' will set up a component test with v0.4.3 semantics. Of course, newer tests would still be encouraged to be written with integration: true.


Replacement PR for #115.

/cc @hjdivad

This semantics of the `integration` flag have changed in a
backwards-incompatible way since v0.4.3.  This corresponds to an ember upgrade
(using ember-cli) between v1.12 and v1.13.

In order to ease this upgrade path for ember-cli users, `integration: 'legacy'`
will set up a component test with v0.4.3 semantics.  Of course, newer tests
would still be encouraged to be written with `integration: true`.
@rwjblue
Copy link
Member Author

rwjblue commented Nov 23, 2015

This looks good to me, we'll need to add a deprecation when using isLegacy at some point, to make it acceptable to remove in the next "major" bump (0.5.0 of ember-qunit).

@rwjblue
Copy link
Member Author

rwjblue commented Nov 23, 2015

I'm going to merge this, and submit a follow up PR to tweak isLegacy to only be allowable from moduleForComponent style tests (since that is the only place where I handled things incorrectly with integration: true changing meaning).

rwjblue added a commit that referenced this pull request Nov 23, 2015
Add support for `integration: 'legacy'`
@rwjblue rwjblue merged commit b071b17 into emberjs:master Nov 23, 2015
@rwjblue
Copy link
Member Author

rwjblue commented Nov 23, 2015

Follow up PR: #122

@hjdivad hjdivad deleted the integration-legacy branch November 23, 2015 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants