summaryrefslogtreecommitdiffstats
path: root/hugolib/site_test.go
diff options
context:
space:
mode:
authorsusiwen8 <susiwen8@gmail.com>2021-02-15 01:30:59 +0800
committerGitHub <noreply@github.com>2021-02-14 18:30:59 +0100
commitbf55afd71f2fdb47272ebf1188c9cc87df47b233 (patch)
tree3509fcb64abe26736fb954f5b485dfbb411505e8 /hugolib/site_test.go
parent5f621df2570236a08cd21e8dd1c60502ec3db328 (diff)
Fix some humanize issues
Fixes #7912
Diffstat (limited to 'hugolib/site_test.go')
-rw-r--r--hugolib/site_test.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/hugolib/site_test.go b/hugolib/site_test.go
index 8942f38f8..282f8cd7d 100644
--- a/hugolib/site_test.go
+++ b/hugolib/site_test.go
@@ -22,12 +22,11 @@ import (
"strings"
"testing"
+ "github.com/gobuffalo/flect"
"github.com/gohugoio/hugo/publisher"
"github.com/spf13/viper"
- "github.com/markbates/inflect"
-
qt "github.com/frankban/quicktest"
"github.com/gohugoio/hugo/deps"
"github.com/gohugoio/hugo/resources/page"
@@ -487,7 +486,7 @@ func doTestSectionNaming(t *testing.T, canonify, uglify, pluralize bool) {
for _, test := range tests {
if test.pluralAware && pluralize {
- test.expected = inflect.Pluralize(test.expected)
+ test.expected = flect.Pluralize(test.expected)
}
th.assertFileContent(filepath.Join("public", test.doc), test.expected)