diff --git a/docs/content/guide/component.ngdoc b/docs/content/guide/component.ngdoc index 24eb24be744c..9a74d3edbbc2 100644 --- a/docs/content/guide/component.ngdoc +++ b/docs/content/guide/component.ngdoc @@ -462,7 +462,7 @@ The examples use the [Jasmine](http://jasmine.github.io/) testing framework. **Controller Test:** ```js -describe('component: heroDetail', function() { +describe('HeroDetailController', function() { var $componentController; beforeEach(module('heroApp')); @@ -470,15 +470,6 @@ describe('component: heroDetail', function() { $componentController = _$componentController_; })); - it('should expose a `hero` object', function() { - // Here we are passing actual bindings to the component - var bindings = {hero: {name: 'Wolverine'}}; - var ctrl = $componentController('heroDetail', null, bindings); - - expect(ctrl.hero).toBeDefined(); - expect(ctrl.hero.name).toBe('Wolverine'); - }); - it('should call the `onDelete` binding, when deleting the hero', function() { var onDeleteSpy = jasmine.createSpy('onDelete'); var bindings = {hero: {}, onDelete: onDeleteSpy};