diff --git a/test/ng/directive/ngRepeatSpec.js b/test/ng/directive/ngRepeatSpec.js index 58849d03..e90e688e 100644 --- a/test/ng/directive/ngRepeatSpec.js +++ b/test/ng/directive/ngRepeatSpec.js @@ -527,13 +527,13 @@ describe('ngRepeat', function() { inject(function($templateCache, $compile, $rootScope) { $compileProvider.directive('replaceMeWithRepeater', function() { return { - restrict: 'E', + restrict: 'A', replace: true, templateUrl: 'replace-me-with-repeater.html' }; }); $templateCache.put('replace-me-with-repeater.html', '
{{i}}
'); - element = $compile('
')($rootScope); + element = $compile('
')($rootScope); expect(element.text()).toBe(''); $rootScope.$apply(); expect(element.text()).toBe('123');