aboutsummaryrefslogtreecommitdiffhomepage
path: root/source
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2017-11-19 14:35:49 +0100
committerBjørn Erik Pedersen <[email protected]>2017-11-19 14:35:49 +0100
commitadbd5bc47fb48cbf6afa3198aec405500452ee65 (patch)
tree642e1f6821e51bcb6a25a992073e279070227adb /source
parentc1d325934edc93ac802c7d99a30a5963efe52e01 (diff)
downloadhugo-adbd5bc47fb48cbf6afa3198aec405500452ee65.tar.gz
hugo-adbd5bc47fb48cbf6afa3198aec405500452ee65.zip
source: Enable disabled test
Diffstat (limited to 'source')
-rw-r--r--source/dirs_test.go11
1 files changed, 8 insertions, 3 deletions
diff --git a/source/dirs_test.go b/source/dirs_test.go
index 0d8eacf56..f4650669c 100644
--- a/source/dirs_test.go
+++ b/source/dirs_test.go
@@ -76,6 +76,14 @@ func TestStaticDirs(t *testing.T) {
}, []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 @@ func TestStaticDirs(t *testing.T) {
}
for i, test := range tests {
- if i != 0 {
- break
- }
msg := fmt.Sprintf("Test %d", i)
v := viper.New()
fs := hugofs.NewMem(v)