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

Registry setup fixes #13970

Merged
merged 2 commits into from
Jul 30, 2016
Merged

Registry setup fixes #13970

merged 2 commits into from
Jul 30, 2016

Conversation

rwjblue
Copy link
Member

@rwjblue rwjblue commented Jul 30, 2016

  • Ensure Ember.Application.buildRegistry uses Glimmer registry in alpha. ember-test-helpers calls Ember.Application.buildRegistry to create a registry for its testing harness. Prior to these changes, options[GLIMMER] would be undefined and therefore throw an error when building a registry in the alpha series.
  • Expose Ember.ApplicationInstance.setupRegistry for tooling. Glimmer requires that a number of factories and injections added by ApplicationInstance#setupRegistry are present, but the testing harness only has access to calling Ember.Application.buildRegistry which leaves the registry in a partially populated state. This exposes Ember.ApplicationInstance.setupRegistry so that ember-test-helpers can ensure that its registry is properly populated.

Addresses part of the issues identified in #13963.

Robert Jackson added 2 commits July 29, 2016 20:21
ember-test-helpers calls `Ember.Application.buildRegistry` to create a
registry for its testing harness. Prior to these changes,
`options[GLIMMER]` would be `undefined` and therefore throw an error
when building a registry in the alpha series.
Glimmer requires that a number of factories and injections added by
`ApplicationInstance#setupRegistry` are present, but the testing harness
only has access to calling `Ember.Application.buildRegistry` which
leaves the registry in a partially populated state.

This exposes `Ember.ApplicationInstance.setupRegistry` so that
`ember-test-helpers` can ensure that its registry is properly populated.
@rwjblue rwjblue force-pushed the registry-setup-fixes branch from fc415ec to ffc29cd Compare July 30, 2016 03:40
@rwjblue rwjblue merged commit 1fdfb44 into emberjs:master Jul 30, 2016
@rwjblue rwjblue deleted the registry-setup-fixes branch July 30, 2016 04:35
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.

1 participant