summaryrefslogtreecommitdiffstats
path: root/hugolib/page_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'hugolib/page_test.go')
-rw-r--r--hugolib/page_test.go22
1 files changed, 22 insertions, 0 deletions
diff --git a/hugolib/page_test.go b/hugolib/page_test.go
index 162f26052..5237b6340 100644
--- a/hugolib/page_test.go
+++ b/hugolib/page_test.go
@@ -1983,3 +1983,25 @@ title: "p2"
b.Assert(identity.HashString(p1), qt.Not(qt.Equals), identity.HashString(p2))
b.Assert(identity.HashString(sites[0]), qt.Not(qt.Equals), identity.HashString(sites[1]))
}
+
+// Issue #11243
+func TestRenderWithoutArgument(t *testing.T) {
+ t.Parallel()
+
+ files := `
+-- hugo.toml --
+-- layouts/index.html --
+{{ .Render }}
+`
+
+ b, err := NewIntegrationTestBuilder(
+ IntegrationTestConfig{
+ T: t,
+ TxtarString: files,
+ Running: true,
+ },
+ ).BuildE()
+
+ b.Assert(err, qt.IsNotNil)
+
+}