shithub: hugo

Download patch

ref: adbd5bc47fb48cbf6afa3198aec405500452ee65
parent: c1d325934edc93ac802c7d99a30a5963efe52e01
author: Bjørn Erik Pedersen <[email protected]>
date: Sun Nov 19 09:35:49 EST 2017

source: Enable disabled test

--- a/source/dirs_test.go
+++ b/source/dirs_test.go
@@ -76,6 +76,14 @@
 
 		}, []string{"s1", "l1s1", "l1s2"}},
 		{func(cfg config.Provider, fs *hugofs.Fs) config.Provider {
+			cfg.Set("staticDir", []string{"s1", "s2"})
+
+			l1 := helpers.NewLanguage("en", cfg)
+			l1.Set("staticDir2", []string{"l1s1", "l1s2"})
+			return l1
+
+		}, []string{"s1", "s2", "l1s1", "l1s2"}},
+		{func(cfg config.Provider, fs *hugofs.Fs) config.Provider {
 			cfg.Set("staticDir", "s1")
 
 			l1 := helpers.NewLanguage("en", cfg)
@@ -91,9 +99,6 @@
 	}
 
 	for i, test := range tests {
-		if i != 0 {
-			break
-		}
 		msg := fmt.Sprintf("Test %d", i)
 		v := viper.New()
 		fs := hugofs.NewMem(v)