mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
hugolib: Test helper cleanup
This commit is contained in:
@@ -25,7 +25,7 @@ func TestRSSOutput(t *testing.T) {
|
||||
t.Parallel()
|
||||
var (
|
||||
cfg, fs = newTestCfg()
|
||||
th = testHelper{cfg}
|
||||
th = testHelper{cfg, fs, t}
|
||||
)
|
||||
|
||||
rssLimit := len(weightedSources) - 1
|
||||
@@ -44,11 +44,11 @@ func TestRSSOutput(t *testing.T) {
|
||||
buildSingleSite(t, deps.DepsCfg{Fs: fs, Cfg: cfg}, BuildCfg{})
|
||||
|
||||
// Home RSS
|
||||
th.assertFileContent(t, fs, filepath.Join("public", rssURI), true, "<?xml", "rss version", "RSSTest")
|
||||
th.assertFileContent(filepath.Join("public", rssURI), true, "<?xml", "rss version", "RSSTest")
|
||||
// Section RSS
|
||||
th.assertFileContent(t, fs, filepath.Join("public", "sect", rssURI), true, "<?xml", "rss version", "Sects on RSSTest")
|
||||
th.assertFileContent(filepath.Join("public", "sect", rssURI), true, "<?xml", "rss version", "Sects on RSSTest")
|
||||
// Taxonomy RSS
|
||||
th.assertFileContent(t, fs, filepath.Join("public", "categories", "hugo", rssURI), true, "<?xml", "rss version", "Hugo on RSSTest")
|
||||
th.assertFileContent(filepath.Join("public", "categories", "hugo", rssURI), true, "<?xml", "rss version", "Hugo on RSSTest")
|
||||
|
||||
// RSS Item Limit
|
||||
content := readDestination(t, fs, filepath.Join("public", rssURI))
|
||||
|
Reference in New Issue
Block a user