diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-11-15 07:21:14 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-11-15 08:45:15 +0100 |
commit | 12742bac71c65d65dc56548b643debda94757aee (patch) | |
tree | 0f52d229691f5322e7b64063f6402a18740f91b1 /hugolib/testhelpers_test.go | |
parent | fabf026f4937bf6fbbb944aa7d6e721839ae4c92 (diff) |
Add tests for permalink on Resource with baseURL with path
See #5226
Diffstat (limited to 'hugolib/testhelpers_test.go')
-rw-r--r-- | hugolib/testhelpers_test.go | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/hugolib/testhelpers_test.go b/hugolib/testhelpers_test.go index f80f40c48..33f973e96 100644 --- a/hugolib/testhelpers_test.go +++ b/hugolib/testhelpers_test.go @@ -181,10 +181,13 @@ privacyEnhanced = true ` func (s *sitesBuilder) WithSimpleConfigFile() *sitesBuilder { - var config = ` -baseURL = "http://example.com/" + return s.WithSimpleConfigFileAndBaseURL("http://example.com/") +} -` + commonConfigSections +func (s *sitesBuilder) WithSimpleConfigFileAndBaseURL(baseURL string) *sitesBuilder { + config := fmt.Sprintf("baseURL = %q", baseURL) + + config = config + commonConfigSections return s.WithConfigFile("toml", config) } |