diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-02-17 21:14:52 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-02-18 07:53:25 +0100 |
commit | 07ab7ae3d2e64dafb8f6dab937986d8e366d1fe5 (patch) | |
tree | e208621d1a05c6d1d288445ccaa051bf33fbc92b /hugolib/alias_test.go | |
parent | ed847ed93d86d0e1c0993adfee787e7fa02e604b (diff) | |
download | hugo-07ab7ae3d2e64dafb8f6dab937986d8e366d1fe5.tar.gz hugo-07ab7ae3d2e64dafb8f6dab937986d8e366d1fe5.zip |
hugolib: More test helper cleanup
Diffstat (limited to 'hugolib/alias_test.go')
-rw-r--r-- | hugolib/alias_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hugolib/alias_test.go b/hugolib/alias_test.go index 6aa0ca3dd..cd8ef3496 100644 --- a/hugolib/alias_test.go +++ b/hugolib/alias_test.go @@ -45,9 +45,9 @@ func TestAlias(t *testing.T) { buildSingleSite(t, deps.DepsCfg{Fs: fs, Cfg: cfg}, BuildCfg{}) // the real page - th.assertFileContent(filepath.Join("public", "page", "index.html"), false, "For some moments the old man") + th.assertFileContent(filepath.Join("public", "page", "index.html"), "For some moments the old man") // the alias redirector - th.assertFileContent(filepath.Join("public", "foo", "bar", "index.html"), false, "<meta http-equiv=\"refresh\" content=\"0; ") + th.assertFileContent(filepath.Join("public", "foo", "bar", "index.html"), "<meta http-equiv=\"refresh\" content=\"0; ") } func TestAliasTemplate(t *testing.T) { @@ -69,7 +69,7 @@ func TestAliasTemplate(t *testing.T) { require.NoError(t, sites.Build(BuildCfg{})) // the real page - th.assertFileContent(filepath.Join("public", "page", "index.html"), false, "For some moments the old man") + th.assertFileContent(filepath.Join("public", "page", "index.html"), "For some moments the old man") // the alias redirector - th.assertFileContent(filepath.Join("public", "foo", "bar", "index.html"), false, "ALIASTEMPLATE") + th.assertFileContent(filepath.Join("public", "foo", "bar", "index.html"), "ALIASTEMPLATE") } |