summaryrefslogtreecommitdiffstats
path: root/hugolib/disableKinds_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-02-19 09:15:30 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-02-19 09:15:30 +0100
commit9416fdd334c6518209d2a471f3d227f92f3474ea (patch)
treee32e0ccfc411145ec3b5ad255e30d0955b854f8c /hugolib/disableKinds_test.go
parentb2e3748a4e148a9624b9906bd8f34a238a54429c (diff)
hugolib: Add missing page kind to allKinds
Diffstat (limited to 'hugolib/disableKinds_test.go')
-rw-r--r--hugolib/disableKinds_test.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/hugolib/disableKinds_test.go b/hugolib/disableKinds_test.go
index 3b039478c..e833b0a13 100644
--- a/hugolib/disableKinds_test.go
+++ b/hugolib/disableKinds_test.go
@@ -39,6 +39,12 @@ func TestDisableKindsSomeDisabled(t *testing.T) {
func TestDisableKindsOneDisabled(t *testing.T) {
t.Parallel()
for _, kind := range allKinds {
+ if kind == KindPage {
+ // Turning off regular page generation have some side-effects
+ // not handled by the assertions below (no sections), so
+ // skip that for now.
+ continue
+ }
doTestDisableKinds(t, kind)
}
}
@@ -49,7 +55,6 @@ func TestDisableKindsAllDisabled(t *testing.T) {
}
func doTestDisableKinds(t *testing.T, disabled ...string) {
-
siteConfigTemplate := `
baseURL = "http://example.com/blog"
enableRobotsTXT = true