shithub: hugo

Download patch

ref: 2cb89a523a7bc7302620f400b2829e5d73cf477d
parent: 8cc7684a91f6c83f0f68024deb9f98b330911d2f
author: spf13 <[email protected]>
date: Mon Nov 3 05:14:10 EST 2014

Update menu test to work with revised source struct

--- a/hugolib/menu_test.go
+++ b/hugolib/menu_test.go
@@ -1,12 +1,13 @@
 package hugolib
 
 import (
+	"strings"
+	"testing"
+
 	"github.com/BurntSushi/toml"
 	"github.com/spf13/hugo/source"
 	"github.com/spf13/hugo/target"
 	"github.com/spf13/viper"
-	"strings"
-	"testing"
 )
 
 const (
@@ -63,7 +64,7 @@
 	[menu.p_one]
 	[menu.p_two]
 		Identity = "Two"
-	
+
 +++
 Front Matter with Menu Pages`)
 
@@ -78,9 +79,9 @@
 Front Matter with Menu Pages`)
 
 var MENU_PAGE_SOURCES = []source.ByteSource{
-	{"sect/doc1.md", MENU_PAGE_1, "sect"},
-	{"sect/doc2.md", MENU_PAGE_2, "sect"},
-	{"sect/doc3.md", MENU_PAGE_3, "sect"},
+	{"sect/doc1.md", MENU_PAGE_1},
+	{"sect/doc2.md", MENU_PAGE_2},
+	{"sect/doc3.md", MENU_PAGE_3},
 }
 
 type testMenuState struct {