diff options
Diffstat (limited to 'test/ng/directive/ngIncludeSpec.js')
| -rw-r--r-- | test/ng/directive/ngIncludeSpec.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/ng/directive/ngIncludeSpec.js b/test/ng/directive/ngIncludeSpec.js index ae9454d6..a30ed11e 100644 --- a/test/ng/directive/ngIncludeSpec.js +++ b/test/ng/directive/ngIncludeSpec.js @@ -60,9 +60,10 @@ describe('ng-include', function() { })); - it('should fire $includeContentLoaded event after linking the content', inject( + it('should fire $includeContentLoaded event on child scope after linking the content', inject( function($rootScope, $compile, $templateCache) { - var contentLoadedSpy = jasmine.createSpy('content loaded').andCallFake(function() { + var contentLoadedSpy = jasmine.createSpy('content loaded').andCallFake(function(event) { + expect(event.targetScope.$parent).toBe($rootScope); expect(element.text()).toBe('partial content'); }); |
