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
This commit is contained in:
Firexion
2014-05-20 14:29:58 -04:00
committed by Caitlin Potter
parent bcdd925c9d
commit 199825ec26

View File

@@ -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() {