hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit 78f9bf24448e088e3b2c9ebe4f17f5f6f2ffa597
parent ab70e6f52f644aae8abfbdf21561ad597c0038a7
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date:   Thu, 14 Jan 2016 17:30:05 +0100

Add one more menu test

See #1774

Diffstat:
Mhugolib/menu_test.go | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/hugolib/menu_test.go b/hugolib/menu_test.go
@@ -44,6 +44,10 @@ const (
     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 TestPageMenu(t *testing.T) {
 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 @@ func TestMenuURL(t *testing.T) {
 		{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 {