summaryrefslogtreecommitdiffstats
path: root/source/fileInfo_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'source/fileInfo_test.go')
-rw-r--r--source/fileInfo_test.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/source/fileInfo_test.go b/source/fileInfo_test.go
index ec2a17c65..9d3566240 100644
--- a/source/fileInfo_test.go
+++ b/source/fileInfo_test.go
@@ -19,8 +19,6 @@ import (
"github.com/gohugoio/hugo/helpers"
- "github.com/spf13/viper"
-
"github.com/gohugoio/hugo/hugofs"
"github.com/spf13/afero"
"github.com/stretchr/testify/require"
@@ -72,14 +70,13 @@ func TestFileInfoLanguage(t *testing.T) {
m := afero.NewMemMapFs()
lfs := hugofs.NewLanguageFs("sv", langs, m)
- v := viper.New()
- v.Set("contentDir", "content")
+ v := newTestConfig()
fs := hugofs.NewFrom(m, v)
ps, err := helpers.NewPathSpec(fs, v)
assert.NoError(err)
- s := SourceSpec{Fs: lfs, PathSpec: ps}
+ s := SourceSpec{SourceFs: lfs, PathSpec: ps}
s.Languages = map[string]interface{}{
"en": true,
}