summaryrefslogtreecommitdiffstats
path: root/hugolib/page_permalink_test.go
diff options
context:
space:
mode:
authorspf13 <steve.francia@gmail.com>2014-04-07 11:44:13 -0400
committerspf13 <steve.francia@gmail.com>2014-04-07 11:44:51 -0400
commit9a83f7a01b1fe79e603c3eb78d380614e5e00ba7 (patch)
tree265baf7cde36b41a5f6f93660f8d0f3f89ae8886 /hugolib/page_permalink_test.go
parent62dd1d45c12193ac5ad95a4f491dfcdbcad7be7a (diff)
Fixing all tests to pass with new Viper Config
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"},