diff options
author | Noah Campbell <noahcampbell@gmail.com> | 2013-09-13 14:46:34 -0700 |
---|---|---|
committer | Noah Campbell <noahcampbell@gmail.com> | 2013-09-13 14:51:28 -0700 |
commit | d45fb72f675997d11406bce82919f1dc50414d68 (patch) | |
tree | 5530acc023ae7d39955142bdd8e7bbc084111d80 /hugolib/site_url_test.go | |
parent | 803a0fce1ef3f2f42ed649a489ae381586445886 (diff) |
Add /index.html to unadorned alias paths
Bring code to be better in line with documentation.
Diffstat (limited to 'hugolib/site_url_test.go')
-rw-r--r-- | hugolib/site_url_test.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/hugolib/site_url_test.go b/hugolib/site_url_test.go index c5146b92d..6d969fde2 100644 --- a/hugolib/site_url_test.go +++ b/hugolib/site_url_test.go @@ -2,13 +2,13 @@ package hugolib import ( "bytes" + "github.com/spf13/hugo/target" + "html/template" "io" "testing" - "html/template" - "github.com/spf13/hugo/target" ) -const SLUG_DOC_1 = "---\ntitle: slug doc 1\nslug: slug-doc-1\naliases:\n - sd1/foo/\n - sd2\n - sd3/\n - sd4.php\n---\nslug doc 1 content" +const SLUG_DOC_1 = "---\ntitle: slug doc 1\nslug: slug-doc-1\naliases:\n - sd1/foo/\n - sd2\n - sd3/\n - sd4.html\n---\nslug doc 1 content" //const SLUG_DOC_1 = "---\ntitle: slug doc 1\nslug: slug-doc-1\n---\nslug doc 1 content" const SLUG_DOC_2 = "---\ntitle: slug doc 2\nslug: slug-doc-2\n---\nslug doc 2 content" @@ -68,7 +68,7 @@ func TestPageCount(t *testing.T) { alias := &InMemoryAliasTarget{files: files} s := &Site{ Target: target, - Alias: alias, + Alias: alias, Config: Config{UglyUrls: false}, Source: &inMemorySource{urlFakeSource}, } @@ -102,9 +102,9 @@ func TestPageCount(t *testing.T) { for _, s := range []string{ "sd1/foo/index.html", - "sd2", + "sd2/index.html", "sd3/index.html", - "sd4.php", + "sd4.html", } { if _, ok := target.files[s]; !ok { t.Errorf("No alias rendered: %s", s) |