diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-02-17 20:52:50 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-02-17 20:52:50 +0100 |
commit | ed847ed93d86d0e1c0993adfee787e7fa02e604b (patch) | |
tree | fc85030e7109f3c1f8192bb417cba221f74342fe /hugolib/rss_test.go | |
parent | 10c13f5d79e467796088cd305c8c3cb0fa7c0ee0 (diff) |
hugolib: Test helper cleanup
Diffstat (limited to 'hugolib/rss_test.go')
-rw-r--r-- | hugolib/rss_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hugolib/rss_test.go b/hugolib/rss_test.go index 0d14bf5d6..54ca1c06c 100644 --- a/hugolib/rss_test.go +++ b/hugolib/rss_test.go @@ -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)) |