From 78f9bf24448e088e3b2c9ebe4f17f5f6f2ffa597 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Thu, 14 Jan 2016 17:30:05 +0100 Subject: [PATCH] Add one more menu test See #1774 --- hugolib/menu_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hugolib/menu_test.go b/hugolib/menu_test.go index 49a5b5c6d..33fa0a25f 100644 --- 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 {