ref: 78f9bf24448e088e3b2c9ebe4f17f5f6f2ffa597
parent: ab70e6f52f644aae8abfbdf21561ad597c0038a7
author: Bjørn Erik Pedersen <[email protected]>
date: Thu Jan 14 12:30:05 EST 2016
Add one more menu test See #1774
--- a/hugolib/menu_test.go
+++ b/hugolib/menu_test.go
@@ -44,6 +44,10 @@
name = "ext"
url = "http://gohugo.io"
identifier = "ext"
+[[menu.main]]
+ name = "ext2"
+ url = "http://foo.local/Zoo/foo"
+ identifier = "ext2"
[[menu.grandparent]]
name = "grandparent"
url = "/grandparent"
@@ -313,6 +317,7 @@
func TestMenuURL(t *testing.T) {
viper.Reset()
defer viper.Reset()
+
s := setupMenuTests(t, MENU_PAGE_SOURCES)
for i, this := range []struct {
@@ -323,6 +328,7 @@
{findTestMenuEntryByID(s, "hash", "hash"), "/Zoo/resource#anchor"},
// issue #1774
{findTestMenuEntryByID(s, "main", "ext"), "http://gohugo.io"},
+ {findTestMenuEntryByID(s, "main", "ext2"), "http://foo.local/Zoo/foo"},
} {
if this.me == nil {