summaryrefslogtreecommitdiffstats
path: root/hugolib/taxonomy_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'hugolib/taxonomy_test.go')
-rw-r--r--hugolib/taxonomy_test.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/hugolib/taxonomy_test.go b/hugolib/taxonomy_test.go
index b6b696ed3..94e937c81 100644
--- a/hugolib/taxonomy_test.go
+++ b/hugolib/taxonomy_test.go
@@ -29,14 +29,17 @@ import (
func TestTaxonomiesCountOrder(t *testing.T) {
t.Parallel()
- taxonomies := make(map[string]string)
+ c := qt.New(t)
+ taxonomies := make(map[string]string)
taxonomies["tag"] = "tags"
taxonomies["category"] = "categories"
cfg, fs := newTestCfg()
cfg.Set("taxonomies", taxonomies)
+ configs, err := loadTestConfigFromProvider(cfg)
+ c.Assert(err, qt.IsNil)
const pageContent = `---
tags: ['a', 'B', 'c']
@@ -46,7 +49,7 @@ YAML frontmatter with tags and categories taxonomy.`
writeSource(t, fs, filepath.Join("content", "page.md"), pageContent)
- s := buildSingleSite(t, deps.DepsCfg{Fs: fs, Cfg: cfg}, BuildCfg{})
+ s := buildSingleSite(t, deps.DepsCfg{Fs: fs, Configs: configs}, BuildCfg{})
st := make([]string, 0)
for _, t := range s.Taxonomies()["tags"].ByCount() {