{"action":"created","issue":{"url":"https://api.github.com/repos/switchfly/ember-test-helpers/issues/113","labels_url":"https://api.github.com/repos/switchfly/ember-test-helpers/issues/113/labels{/name}","comments_url":"https://api.github.com/repos/switchfly/ember-test-helpers/issues/113/comments","events_url":"https://api.github.com/repos/switchfly/ember-test-helpers/issues/113/events","html_url":"https://github.com/switchfly/ember-test-helpers/pull/113","id":112420249,"number":113,"title":"Fix issues with normalization in primary (non-fallback) registry.","user":{"login":"rwjblue","id":12637,"avatar_url":"https://avatars.githubusercontent.com/u/12637?v=3","gravatar_id":"","url":"https://api.github.com/users/rwjblue","html_url":"https://github.com/rwjblue","followers_url":"https://api.github.com/users/rwjblue/followers","following_url":"https://api.github.com/users/rwjblue/following{/other_user}","gists_url":"https://api.github.com/users/rwjblue/gists{/gist_id}","starred_url":"https://api.github.com/users/rwjblue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwjblue/subscriptions","organizations_url":"https://api.github.com/users/rwjblue/orgs","repos_url":"https://api.github.com/users/rwjblue/repos","events_url":"https://api.github.com/users/rwjblue/events{/privacy}","received_events_url":"https://api.github.com/users/rwjblue/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-10-20T17:33:20Z","updated_at":"2015-10-21T15:09:42Z","closed_at":"2015-10-21T15:03:03Z","pull_request":{"url":"https://api.github.com/repos/switchfly/ember-test-helpers/pulls/113","html_url":"https://github.com/switchfly/ember-test-helpers/pull/113","diff_url":"https://github.com/switchfly/ember-test-helpers/pull/113.diff","patch_url":"https://github.com/switchfly/ember-test-helpers/pull/113.patch"},"body":"When Ember internally builds a registry via `Ember.Application.buildRegistry` it aliases `registry.normalizeFullName` to `resolver.normalize` and this becomes the fallback registry.  Then Ember creates the primary registry (in `ApplicationInstance`'s constructor) and provides the primary registry's resolver (which is `function() { }` to allow for registration overrides) with the original (aka from the `fallback` registry) `normalizeFullName`.\r\n\r\nUnfortunately, when this was initially implemented in ember-test-helpers I missed this nuance and we subsequently had many issues reported for things that the normalize method would have fixed (specifically converting `service:fooBar` to `service:foo-bar` before looking up).\r\n\r\nIt would be better IMO if `Ember.Registry` could be made aware of this resolver shenanigans, and provide a hook that can be called to \"wrapFallbackRegistry\" or somesuch so that ember-test-helpers (and `ApplicationInstance` in Ember) do not need to know about these \"magic\" methods.\r\n\r\nFixes #108.\r\nFixes https://github.com/rwjblue/ember-qunit/issues/200\r\nFixes https://github.com/rwjblue/ember-qunit/issues/199"},"comment":{"url":"https://api.github.com/repos/switchfly/ember-test-helpers/issues/comments/149926905","html_url":"https://github.com/switchfly/ember-test-helpers/pull/113#issuecomment-149926905","issue_url":"https://api.github.com/repos/switchfly/ember-test-helpers/issues/113","id":149926905,"user":{"login":"rwjblue","id":12637,"avatar_url":"https://avatars.githubusercontent.com/u/12637?v=3","gravatar_id":"","url":"https://api.github.com/users/rwjblue","html_url":"https://github.com/rwjblue","followers_url":"https://api.github.com/users/rwjblue/followers","following_url":"https://api.github.com/users/rwjblue/following{/other_user}","gists_url":"https://api.github.com/users/rwjblue/gists{/gist_id}","starred_url":"https://api.github.com/users/rwjblue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwjblue/subscriptions","organizations_url":"https://api.github.com/users/rwjblue/orgs","repos_url":"https://api.github.com/users/rwjblue/repos","events_url":"https://api.github.com/users/rwjblue/events{/privacy}","received_events_url":"https://api.github.com/users/rwjblue/received_events","type":"User","site_admin":false},"created_at":"2015-10-21T15:09:42Z","updated_at":"2015-10-21T15:09:42Z","body":"@dgeb - Sounds good."}}