summaryrefslogtreecommitdiffstats
path: root/hugolib/config_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-09-15 09:32:52 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-09-15 09:32:52 +0200
commitb86a605bfb14450d56f4e7faeb4fc5fa8c936438 (patch)
tree5fc32bce53a880a706ef28b2041081995693894e /hugolib/config_test.go
parentbbb11a4a0f9b4673ecba52d349e90db8c352e444 (diff)
Make paginate settings configurable per language
Fixes #2449
Diffstat (limited to 'hugolib/config_test.go')
-rw-r--r--hugolib/config_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/hugolib/config_test.go b/hugolib/config_test.go
index 7bbb2670a..8c307bd25 100644
--- a/hugolib/config_test.go
+++ b/hugolib/config_test.go
@@ -16,6 +16,8 @@ package hugolib
import (
"testing"
+ "github.com/spf13/hugo/helpers"
+
"github.com/spf13/viper"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
@@ -31,7 +33,7 @@ func TestLoadGlobalConfig(t *testing.T) {
writeSource(t, "hugo.toml", configContent)
require.NoError(t, LoadGlobalConfig("", "hugo.toml"))
- assert.Equal(t, "side", viper.GetString("PaginatePath"))
+ assert.Equal(t, "side", helpers.Config().GetString("paginatePath"))
// default
assert.Equal(t, "layouts", viper.GetString("LayoutDir"))
}