From 199825ec263e76dec17dd7d26fdc70b0fca5f520 Mon Sep 17 00:00:00 2001 From: Firexion Date: Tue, 20 May 2014 14:29:58 -0400 Subject: [PATCH] docs(tutorial): make code samples in step 7 match code in angular-phonecat Update step_07.ngdoc Modifying the code snippets provided to match what was on git --- docs/content/tutorial/step_07.ngdoc | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/docs/content/tutorial/step_07.ngdoc b/docs/content/tutorial/step_07.ngdoc index c1e4e176..5d505a78 100644 --- a/docs/content/tutorial/step_07.ngdoc +++ b/docs/content/tutorial/step_07.ngdoc @@ -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() {