From e7730eb4b57961210e71721816baacbedd97244f Mon Sep 17 00:00:00 2001 From: Firexion Date: Tue, 20 May 2014 14:29:58 -0400 Subject: [PATCH] Update step_07.ngdoc Modifying the code snippets provided to match what was on git --- docs/content/tutorial/step_07.ngdoc | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/docs/content/tutorial/step_07.ngdoc b/docs/content/tutorial/step_07.ngdoc index df7229c886bf..1116664ffd0d 100644 --- a/docs/content/tutorial/step_07.ngdoc +++ b/docs/content/tutorial/step_07.ngdoc @@ -148,7 +148,7 @@ __`app/partials/phone-list.html`:__ ```html
-
+
Search: @@ -159,7 +159,7 @@ __`app/partials/phone-list.html`:__
-
+
    @@ -185,7 +185,7 @@ We also added a placeholder template for the phone details view: __`app/partials/phone-detail.html`:__ ```html -TBD: detail view for {{phoneId}} +TBD: detail view for {{phoneId}} ``` Note how we are using the `phoneId` expression which will be defined in the `PhoneDetailCtrl` controller. @@ -304,10 +304,17 @@ to various URLs and verify that the correct view was rendered. ```js ... - it('should redirect index.html to index.html#/phones', function() { - browser().navigateTo('app/index.html'); - expect(browser().location().url()).toBe('/phones'); + it('should redirect index.html to index.html#/phones', function() { + browser.get('app/index.html'); + browser.getLocationAbsUrl().then(function(url) { + expect(url.split('#')[1]).toBe('/phones'); + }); }); + + describe('Phone list view', function() { + beforeEach(function() { + browser.get('app/index.html#/phones'); + }); ... describe('Phone detail view', function() {