diff options
Diffstat (limited to 'hugofs/fs_test.go')
-rw-r--r-- | hugofs/fs_test.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/hugofs/fs_test.go b/hugofs/fs_test.go index b2ed2e86e..660ddd14c 100644 --- a/hugofs/fs_test.go +++ b/hugofs/fs_test.go @@ -28,8 +28,8 @@ func TestIsOsFs(t *testing.T) { c.Assert(IsOsFs(Os), qt.Equals, true) c.Assert(IsOsFs(&afero.MemMapFs{}), qt.Equals, false) - c.Assert(IsOsFs(afero.NewBasePathFs(&afero.MemMapFs{}, "/public")), qt.Equals, false) - c.Assert(IsOsFs(afero.NewBasePathFs(Os, t.TempDir())), qt.Equals, true) + c.Assert(IsOsFs(NewBasePathFs(&afero.MemMapFs{}, "/public")), qt.Equals, false) + c.Assert(IsOsFs(NewBasePathFs(Os, t.TempDir())), qt.Equals, true) } func TestNewDefault(t *testing.T) { @@ -43,9 +43,8 @@ func TestNewDefault(t *testing.T) { c.Assert(f.Source, hqt.IsSameType, new(afero.OsFs)) c.Assert(f.Os, qt.IsNotNil) c.Assert(f.WorkingDirReadOnly, qt.IsNotNil) - c.Assert(f.WorkingDirReadOnly, hqt.IsSameType, new(afero.BasePathFs)) - c.Assert(IsOsFs(f.Source), qt.IsTrue) c.Assert(IsOsFs(f.WorkingDirReadOnly), qt.IsTrue) + c.Assert(IsOsFs(f.Source), qt.IsTrue) c.Assert(IsOsFs(f.PublishDir), qt.IsTrue) c.Assert(IsOsFs(f.Os), qt.IsTrue) } |