mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-28 06:30:33 +03:00
hugolib: More test helper cleanup
This commit is contained in:
parent
ed847ed93d
commit
07ab7ae3d2
14 changed files with 171 additions and 162 deletions
|
@ -44,11 +44,11 @@ func TestRSSOutput(t *testing.T) {
|
|||
buildSingleSite(t, deps.DepsCfg{Fs: fs, Cfg: cfg}, BuildCfg{})
|
||||
|
||||
// Home RSS
|
||||
th.assertFileContent(filepath.Join("public", rssURI), true, "<?xml", "rss version", "RSSTest")
|
||||
th.assertFileContent(filepath.Join("public", rssURI), "<?xml", "rss version", "RSSTest")
|
||||
// Section RSS
|
||||
th.assertFileContent(filepath.Join("public", "sect", rssURI), true, "<?xml", "rss version", "Sects on RSSTest")
|
||||
th.assertFileContent(filepath.Join("public", "sect", rssURI), "<?xml", "rss version", "Sects on RSSTest")
|
||||
// Taxonomy RSS
|
||||
th.assertFileContent(filepath.Join("public", "categories", "hugo", rssURI), true, "<?xml", "rss version", "Hugo on RSSTest")
|
||||
th.assertFileContent(filepath.Join("public", "categories", "hugo", rssURI), "<?xml", "rss version", "Hugo on RSSTest")
|
||||
|
||||
// RSS Item Limit
|
||||
content := readDestination(t, fs, filepath.Join("public", rssURI))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue