diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-03-21 09:35:15 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-04-08 13:26:17 +0200 |
commit | d070bdf10f14d233288f7318a4e9f7555f070a65 (patch) | |
tree | fff8d59f98bdab3027bb45c4e10ca88594332872 /resources/transform_test.go | |
parent | b08193971a821fc27e549a73120c15e5e5186775 (diff) |
Rework the Destination filesystem to make --renderStaticToDisk work
See #9626
Diffstat (limited to 'resources/transform_test.go')
-rw-r--r-- | resources/transform_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/transform_test.go b/resources/transform_test.go index cfc004224..cf0a7d421 100644 --- a/resources/transform_test.go +++ b/resources/transform_test.go @@ -70,13 +70,13 @@ func TestTransform(t *testing.T) { // Verify that we publish the same file once only. assertNoDuplicateWrites := func(c *qt.C, spec *Spec) { c.Helper() - d := spec.Fs.Destination.(hugofs.DuplicatesReporter) + d := spec.Fs.PublishDir.(hugofs.DuplicatesReporter) c.Assert(d.ReportDuplicates(), qt.Equals, "") } assertShouldExist := func(c *qt.C, spec *Spec, filename string, should bool) { c.Helper() - exists, _ := helpers.Exists(filepath.FromSlash(filename), spec.Fs.Destination) + exists, _ := helpers.Exists(filepath.FromSlash(filename), spec.Fs.WorkingDirReadOnly) c.Assert(exists, qt.Equals, should) } |