summaryrefslogtreecommitdiffstats
path: root/hugolib/page_permalink_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'hugolib/page_permalink_test.go')
-rw-r--r--hugolib/page_permalink_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/hugolib/page_permalink_test.go b/hugolib/page_permalink_test.go
index a4fed5b19..5bbf07da8 100644
--- a/hugolib/page_permalink_test.go
+++ b/hugolib/page_permalink_test.go
@@ -3,6 +3,8 @@ package hugolib
import (
"html/template"
"testing"
+
+ "github.com/spf13/viper"
)
func TestPermalink(t *testing.T) {
@@ -32,6 +34,7 @@ func TestPermalink(t *testing.T) {
}
for _, test := range tests {
+ viper.Set("uglyurls", test.uglyurls)
p := &Page{
Node: Node{
UrlPath: UrlPath{
@@ -40,9 +43,6 @@ func TestPermalink(t *testing.T) {
},
Site: SiteInfo{
BaseUrl: test.base,
- Config: &Config{
- UglyUrls: test.uglyurls,
- },
},
},
File: File{FileName: test.file, Dir: test.dir, Extension: "html"},