hugolib: Test helper cleanup

This commit is contained in:
Bjørn Erik Pedersen 2017-02-17 20:52:50 +01:00
parent 10c13f5d79
commit ed847ed93d
14 changed files with 214 additions and 208 deletions

View file

@ -30,7 +30,7 @@ func TestRobotsTXTOutput(t *testing.T) {
t.Parallel()
var (
cfg, fs = newTestCfg()
th = testHelper{cfg}
th = testHelper{cfg, fs, t}
)
cfg.Set("baseURL", "http://auth/bub/")
@ -41,6 +41,6 @@ func TestRobotsTXTOutput(t *testing.T) {
buildSingleSite(t, deps.DepsCfg{Fs: fs, Cfg: cfg}, BuildCfg{})
th.assertFileContent(t, fs, "public/robots.txt", true, "User-agent: Googlebot")
th.assertFileContent("public/robots.txt", true, "User-agent: Googlebot")
}