diff options
author | spf13 <steve.francia@gmail.com> | 2014-04-07 11:44:13 -0400 |
---|---|---|
committer | spf13 <steve.francia@gmail.com> | 2014-04-07 11:44:51 -0400 |
commit | 9a83f7a01b1fe79e603c3eb78d380614e5e00ba7 (patch) | |
tree | 265baf7cde36b41a5f6f93660f8d0f3f89ae8886 /hugolib/site_url_test.go | |
parent | 62dd1d45c12193ac5ad95a4f491dfcdbcad7be7a (diff) |
Fixing all tests to pass with new Viper Config
Diffstat (limited to 'hugolib/site_url_test.go')
-rw-r--r-- | hugolib/site_url_test.go | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/hugolib/site_url_test.go b/hugolib/site_url_test.go index ef661961b..f248d6df1 100644 --- a/hugolib/site_url_test.go +++ b/hugolib/site_url_test.go @@ -1,10 +1,12 @@ package hugolib import ( - "github.com/spf13/hugo/source" - "github.com/spf13/hugo/target" "html/template" "testing" + + "github.com/spf13/hugo/source" + "github.com/spf13/hugo/target" + "github.com/spf13/viper" ) 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\n" @@ -51,10 +53,11 @@ func TestPageCount(t *testing.T) { files := make(map[string][]byte) target := &target.InMemoryTarget{Files: files} alias := &InMemoryAliasTarget{files: files} + + viper.Set("uglyurls", false) s := &Site{ Target: target, Alias: alias, - Config: Config{UglyUrls: false}, Source: &source.InMemorySource{ByteSource: urlFakeSource}, } s.initializeSiteInfo() |