aboutsummaryrefslogtreecommitdiffstats
path: root/utils/fs
diff options
context:
space:
mode:
Diffstat (limited to 'utils/fs')
-rw-r--r--utils/fs/test/fs_suite.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/utils/fs/test/fs_suite.go b/utils/fs/test/fs_suite.go
index 055839e..e8e04ab 100644
--- a/utils/fs/test/fs_suite.go
+++ b/utils/fs/test/fs_suite.go
@@ -95,6 +95,14 @@ func (s *FilesystemSuite) TestReadDirAndDir(c *C) {
c.Assert(info, HasLen, 2)
}
+func (s *FilesystemSuite) TestCreateInDir(c *C) {
+ dir := s.Fs.Dir("foo")
+ f, err := dir.Create("bar")
+ c.Assert(err, IsNil)
+ c.Assert(f.Close(), IsNil)
+ c.Assert(f.Filename(), Equals, "bar")
+}
+
func (s *FilesystemSuite) TestRename(c *C) {
f, err := s.Fs.Create("foo")
c.Assert(err, IsNil)