summaryrefslogtreecommitdiffstats
path: root/hugolib/sitemap_test.go
diff options
context:
space:
mode:
authorIvan Fraixedes <ivan@fraixed.es>2015-12-08 21:13:09 +0000
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-01-05 23:36:16 +0100
commit9a6dc6c791f47e1d410956cb16cc42a0117f7246 (patch)
tree83262271b13d4d0af9b117ac017b99168b6c9709 /hugolib/sitemap_test.go
parent7c5a1fd16bc76f010d2321371e3c2ef95b53556d (diff)
Add embeded template for robots.txt
Diffstat (limited to 'hugolib/sitemap_test.go')
-rw-r--r--hugolib/sitemap_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/hugolib/sitemap_test.go b/hugolib/sitemap_test.go
index 7bc16b482..13bc92a18 100644
--- a/hugolib/sitemap_test.go
+++ b/hugolib/sitemap_test.go
@@ -68,6 +68,10 @@ func TestSitemapOutput(t *testing.T) {
t.Fatalf("Unable to RenderSitemap: %s", err)
}
+ if err := s.RenderRobotsTXT(); err != nil {
+ t.Fatalf("Unable to RenderRobotsTXT :%s", err)
+ }
+
sitemapFile, err := hugofs.DestinationFS.Open("sitemap.xml")
if err != nil {