Expect(err).NotTo(HaveOccurred()) expectedFileMode = fmt.Sprintf("%#o", info.Mode()) return nil } }) It("extracts the zip", func() { fileutils.TempDir("gather-files", func(tmpDir string, err error) { Expect(err).NotTo(HaveOccurred()) _, _, err = actor.GatherFiles(appDir, tmpDir) Expect(err).NotTo(HaveOccurred()) Expect(zipper.UnzipCallCount()).To(Equal(1)) }) }) It("returns files list with file mode populated", func() { fileutils.TempDir("gather-files", func(tmpDir string, err error) { actualFiles, _, err := actor.GatherFiles(appDir, tmpDir) Expect(err).NotTo(HaveOccurred()) expectedFiles := []resources.AppFileResource{ resources.AppFileResource{ Path: "example-app/ignore-me", Mode: expectedFileMode, }, }