diff --git a/lib/ember-test-helpers/isolated-container.js b/lib/ember-test-helpers/isolated-container.js index f5dfc3b2b..4b95168cc 100644 --- a/lib/ember-test-helpers/isolated-container.js +++ b/lib/ember-test-helpers/isolated-container.js @@ -4,6 +4,15 @@ import Ember from 'ember'; export default function isolatedContainer(fullNames) { var resolver = getResolver(); var container = new Ember.Container(); + var normalize = function(fullName) { + return resolver.normalize(fullName); + }; + //normalizeFullName only exists since Ember 1.9 + if (Ember.typeOf(container.normalizeFullName) === 'function') { + container.normalizeFullName = normalize; + } else { + container.normalize = normalize; + } container.optionsForType('component', { singleton: false }); container.optionsForType('view', { singleton: false }); container.optionsForType('template', { instantiate: false });