summaryrefslogtreecommitdiffstats
path: root/hugolib/robotstxt_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'hugolib/robotstxt_test.go')
-rw-r--r--hugolib/robotstxt_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/hugolib/robotstxt_test.go b/hugolib/robotstxt_test.go
index 5b6c90826..2faabda7b 100644
--- a/hugolib/robotstxt_test.go
+++ b/hugolib/robotstxt_test.go
@@ -34,7 +34,7 @@ func TestRobotsTXTOutput(t *testing.T) {
hugofs.InitMemFs()
- viper.Set("baseurl", "http://auth/bub/")
+ viper.Set("baseURL", "http://auth/bub/")
viper.Set("enableRobotsTXT", true)
s := &Site{
@@ -54,6 +54,6 @@ func TestRobotsTXTOutput(t *testing.T) {
robots := helpers.ReaderToBytes(robotsFile)
if !bytes.HasPrefix(robots, []byte("User-agent: Googlebot")) {
- t.Errorf("Robots file should start with 'User-agentL Googlebot'. %s", robots)
+ t.Errorf("Robots file should start with 'User-agent: Googlebot'. %s", robots)
}
}