summaryrefslogtreecommitdiffstats
path: root/source/filesystem_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'source/filesystem_test.go')
-rw-r--r--source/filesystem_test.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/filesystem_test.go b/source/filesystem_test.go
index 25ce0268f..82f02d404 100644
--- a/source/filesystem_test.go
+++ b/source/filesystem_test.go
@@ -18,6 +18,8 @@ import (
"runtime"
"testing"
+ "github.com/gohugoio/hugo/helpers"
+
"github.com/gohugoio/hugo/hugofs"
"github.com/spf13/viper"
@@ -69,5 +71,7 @@ func TestUnicodeNorm(t *testing.T) {
func newTestSourceSpec() SourceSpec {
v := viper.New()
- return SourceSpec{Fs: hugofs.NewMem(v), Cfg: v}
+ v.Set("contentDir", "content")
+ ps, _ := helpers.NewPathSpec(hugofs.NewMem(v), v)
+ return SourceSpec{Fs: hugofs.NewMem(v).Source, PathSpec: ps}
}