diff --git a/docs/content/guide/directive.ngdoc b/docs/content/guide/directive.ngdoc index 6b6d3031efcf..2217337b05e5 100644 --- a/docs/content/guide/directive.ngdoc +++ b/docs/content/guide/directive.ngdoc @@ -99,8 +99,13 @@ For example, the following forms are all equivalent and match the {@link ngBind} it('should show off bindings', function() { - expect(element(by.css('div[ng-controller="Controller"] span[ng-bind]')).getText()) - .toBe('Max Karl Ernst Ludwig Planck (April 23, 1858 – October 4, 1947)'); + var containerElm = element(by.css('div[ng-controller="Controller"]')); + var nameBindings = containerElm.all(by.binding('name')); + + expect(nameBindings.count()).toBe(5); + nameBindings.each(function(elem) { + expect(elem.getText()).toEqual('Max Karl Ernst Ludwig Planck (April 23, 1858 – October 4, 1947)'); + }); });