diff options
author | Bjørn Erik Pedersen <[email protected]> | 2017-02-17 20:52:50 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2017-02-17 20:52:50 +0100 |
commit | ed847ed93d86d0e1c0993adfee787e7fa02e604b (patch) | |
tree | fc85030e7109f3c1f8192bb417cba221f74342fe /hugolib/robotstxt_test.go | |
parent | 10c13f5d79e467796088cd305c8c3cb0fa7c0ee0 (diff) | |
download | hugo-ed847ed93d86d0e1c0993adfee787e7fa02e604b.tar.gz hugo-ed847ed93d86d0e1c0993adfee787e7fa02e604b.zip |
hugolib: Test helper cleanup
Diffstat (limited to 'hugolib/robotstxt_test.go')
-rw-r--r-- | hugolib/robotstxt_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hugolib/robotstxt_test.go b/hugolib/robotstxt_test.go index ace5162c8..6ed493e63 100644 --- a/hugolib/robotstxt_test.go +++ b/hugolib/robotstxt_test.go @@ -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") } |