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

Generate a component integration test by default. #64

Merged

Conversation

blimmer
Copy link
Contributor

@blimmer blimmer commented Jul 9, 2015

This commit brings ember-cli-mocha up to date with ember-cli ember-cli/ember-cli#4272
Fixes #58.

Install ember-cli-mocha:

```sh
npm install ember-cli-mocha --save-dev
ember generate ember-cli-mocha
ember install ember-cli-mocha
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ember install will run the blueprint, so no need for two steps.

@blimmer
Copy link
Contributor Author

blimmer commented Jul 9, 2015

cc @rwjblue

" this.render();\n" +
testContent = "// creates the component instance" + EOL +
" var component = this.subject();" + EOL +
" expect(component._state).to.equal('preRender');" + EOL + EOL +
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checking _state was removed in ember-cli/ember-cli#4384, can this be updated to reflect that?

@rwjblue
Copy link
Member

rwjblue commented Jul 9, 2015

Left one small comment, but looks good to me otherwise.

@blimmer
Copy link
Contributor Author

blimmer commented Jul 9, 2015

Sounds good, thanks for looking. I've made the requested change.

@dgeb
Copy link
Member

dgeb commented Jul 9, 2015

@blimmer looks good to me as well - thanks for all your work. Would you mind either removing the version bump from package.json or make it as a separate final commit simply labeled v0.9.0? I like version changes as separate commits (I know - it's a bit pedantic, but I find it helpful in the logs).

This commit brings ember-cli-mocha up to date with ember-cli ember-cli/ember-cli#4272
Fixes ember-cli#58.
@blimmer blimmer force-pushed the component-integration-test-by-default branch from c220193 to 24e5927 Compare July 9, 2015 14:28
@blimmer
Copy link
Contributor Author

blimmer commented Jul 9, 2015

No problem @dgeb , that makes sense. I've rebased and done a force push. Merge at will!

dgeb added a commit that referenced this pull request Jul 9, 2015
…ault

Generate a component integration test by default.
@dgeb dgeb merged commit 42cc756 into ember-cli:master Jul 9, 2015
@dgeb
Copy link
Member

dgeb commented Jul 9, 2015

Perfect - thanks again @blimmer!

Just published v0.9.0.

@rwjblue
Copy link
Member

rwjblue commented Jul 9, 2015

👍 - Thank you for your hard work on this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants