summaryrefslogtreecommitdiffhomepage
path: root/hugolib/testhelpers_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2019-05-31 09:40:58 +0200
committerBjørn Erik Pedersen <[email protected]>2019-06-09 16:55:08 +0200
commit3e6cb2cb77e16be5b6ddd4ae55d5fc6bfba2d226 (patch)
tree849651cfad7c4aed5c37691bc516845b6734bd94 /hugolib/testhelpers_test.go
parent8d898ad6672e0ccb62c5a29b6fccab24d980f104 (diff)
downloadhugo-3e6cb2cb77e16be5b6ddd4ae55d5fc6bfba2d226.tar.gz
hugo-3e6cb2cb77e16be5b6ddd4ae55d5fc6bfba2d226.zip
hugolib: Fix bundle path when slug is set
Fixes #4870
Diffstat (limited to 'hugolib/testhelpers_test.go')
-rw-r--r--hugolib/testhelpers_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/hugolib/testhelpers_test.go b/hugolib/testhelpers_test.go
index fe0f824f2..8c72e10d0 100644
--- a/hugolib/testhelpers_test.go
+++ b/hugolib/testhelpers_test.go
@@ -549,6 +549,10 @@ func (s *sitesBuilder) AssertFileContentFn(filename string, f func(s string) boo
}
}
+func (s *sitesBuilder) AssertHome(matches ...string) {
+ s.AssertFileContent("public/index.html", matches...)
+}
+
func (s *sitesBuilder) AssertFileContent(filename string, matches ...string) {
content := s.FileContent(filename)
for _, match := range matches {