diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-01-14 17:30:05 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-01-14 17:30:05 +0100 |
commit | 78f9bf24448e088e3b2c9ebe4f17f5f6f2ffa597 (patch) | |
tree | e94bad05b3206bf15ad25e9caccc060096f5ee85 /hugolib/menu_test.go | |
parent | ab70e6f52f644aae8abfbdf21561ad597c0038a7 (diff) |
Add one more menu test
See #1774
Diffstat (limited to 'hugolib/menu_test.go')
-rw-r--r-- | hugolib/menu_test.go | 6 |
1 files changed, 6 insertions, 0 deletions
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 { |