summaryrefslogtreecommitdiffstats
path: root/resources/transform_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'resources/transform_test.go')
-rw-r--r--resources/transform_test.go4
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)
}