Skip to content

Refactor component blueprint tests to use fixtures#17198

Merged
rwjblue merged 1 commit intoemberjs:masterfrom
simonihmig:component-blueprint-test-fixtures
Nov 21, 2018
Merged

Refactor component blueprint tests to use fixtures#17198
rwjblue merged 1 commit intoemberjs:masterfrom
simonihmig:component-blueprint-test-fixtures

Conversation

@simonihmig
Copy link
Contributor

This was a bit trickier than the previous refactorings, as with nested components and different paths the combinations exploded a bit, and having a separate fixture file for each of them would have been a bit too much. So...

  • I renamed a few components / paths in tests, so there are not so many different combinations of foo's, x-foo's, bar's and whatnot. But the semantics of each test hasn't been changed.
  • I extended the fixture helper a bit to optionally support some string replacement (templating) functionality, to not have a dozen slightly different test fixtures (given different combinations of component names and paths)

simonihmig added a commit to simonihmig/ember-cli-typescript-blueprints that referenced this pull request Nov 10, 2018
Adds support for ember-mocha 0.14
Tests are copied from ember.js, after making them based on fixtures through emberjs/ember.js#17198
@simonihmig simonihmig force-pushed the component-blueprint-test-fixtures branch from 30c2d2a to f512daf Compare November 11, 2018 11:21
@simonihmig
Copy link
Contributor Author

@rwjblue thanks for merging the other blueprint PRs so quickly! What about this one? Any concerns I can address?

This was referenced Nov 16, 2018
@ppcano
Copy link
Contributor

ppcano commented Nov 16, 2018

#17212 may supersede this PR

@rwjblue rwjblue merged commit 91b3e3c into emberjs:master Nov 21, 2018
@simonihmig simonihmig deleted the component-blueprint-test-fixtures branch November 22, 2018 22:22
simonihmig added a commit to simonihmig/ember-cli-typescript-blueprints that referenced this pull request Nov 22, 2018
Adds support for ember-mocha 0.14
Tests are copied from ember.js, after making them based on fixtures through emberjs/ember.js#17198
simonihmig added a commit to simonihmig/ember-cli-typescript-blueprints that referenced this pull request Nov 22, 2018
Adds support for ember-mocha 0.14
Tests are copied from ember.js, after making them based on fixtures through emberjs/ember.js#17198
simonihmig added a commit to simonihmig/ember-cli-typescript-blueprints that referenced this pull request Nov 30, 2018
Adds support for ember-mocha 0.14
Tests are copied from ember.js, after making them based on fixtures through emberjs/ember.js#17198
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.

3 participants