aboutsummaryrefslogtreecommitdiffstats
path: root/docs/spec
diff options
context:
space:
mode:
authorVojta Jina2011-05-19 21:14:41 +0200
committerIgor Minar2011-06-06 22:52:01 -0700
commit238094310694f0755e6089bf92c36d0ff55fe626 (patch)
treef5ff2e39ad17bc3eb9f1c57462877edf6b31c93d /docs/spec
parent297c9b5b89a6e20d83631170e3c2f71448046bbd (diff)
downloadangular.js-238094310694f0755e6089bf92c36d0ff55fe626.tar.bz2
Allow "section/" links pointing to "section/index"
Diffstat (limited to 'docs/spec')
-rw-r--r--docs/spec/ngdocSpec.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/spec/ngdocSpec.js b/docs/spec/ngdocSpec.js
index cb11c1a5..7ad364c0 100644
--- a/docs/spec/ngdocSpec.js
+++ b/docs/spec/ngdocSpec.js
@@ -119,6 +119,9 @@ describe('ngdoc', function(){
expect(doc.convertUrlToAbsolute('angular.widget')).toEqual('section/angular.widget');
});
+ it('should change id to index if not specified', function() {
+ expect(doc.convertUrlToAbsolute('guide/')).toEqual('guide/index');
+ });
});
describe('sorting', function(){