diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-09-15 09:32:52 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-09-15 09:32:52 +0200 |
commit | b86a605bfb14450d56f4e7faeb4fc5fa8c936438 (patch) | |
tree | 5fc32bce53a880a706ef28b2041081995693894e /hugolib/config_test.go | |
parent | bbb11a4a0f9b4673ecba52d349e90db8c352e444 (diff) |
Make paginate settings configurable per language
Fixes #2449
Diffstat (limited to 'hugolib/config_test.go')
-rw-r--r-- | hugolib/config_test.go | 4 |
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")) } |