github.com/hoffie/larasync@v0.0.0-20151025221940-0384d2bddcef/repository/repository_windows_test.go (about)

     1  // build windows
     2  
     3  package repository
     4  
     5  import (
     6  	"github.com/hoffie/larasync/helpers/path"
     7  
     8  	. "gopkg.in/check.v1"
     9  )
    10  
    11  // Windows should hide the newly created management directories.
    12  func (t *RepositoryTests) TestManagementDirMarkAsHidden(c *C) {
    13  	r := New(t.dir)
    14  	err := r.CreateManagementDir()
    15  	c.Assert(err, IsNil)
    16  
    17  	check, err := path.IsHidden(r.GetManagementDir())
    18  	c.Assert(err, IsNil)
    19  	c.Assert(check, Equals, true)
    20  }