diff options
Diffstat (limited to 'hugolib/robotstxt_test.go')
-rw-r--r-- | hugolib/robotstxt_test.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/hugolib/robotstxt_test.go b/hugolib/robotstxt_test.go index 2035c235f..c901ce662 100644 --- a/hugolib/robotstxt_test.go +++ b/hugolib/robotstxt_test.go @@ -39,3 +39,16 @@ func TestRobotsTXTOutput(t *testing.T) { b.AssertFileContent("public/robots.txt", "User-agent: Googlebot") } + +func TestRobotsTXTDefaultTemplate(t *testing.T) { + t.Parallel() + files := ` +-- hugo.toml -- +baseURL = "http://auth/bub/" +enableRobotsTXT = true +` + + b := Test(t, files) + + b.AssertFileContent("public/robots.txt", "User-agent: *") +} |