github.com/liamawhite/cli-with-i18n@v6.32.1-0.20171122084555-dede0a5c3448+incompatible/util/generic/executable_filename_unix_test.go (about)

     1  // +build !windows
     2  
     3  package generic_test
     4  
     5  import (
     6  	"path/filepath"
     7  
     8  	. "github.com/liamawhite/cli-with-i18n/util/generic"
     9  	. "github.com/onsi/ginkgo"
    10  	. "github.com/onsi/gomega"
    11  )
    12  
    13  var _ = Describe("ExecutableFilename", func() {
    14  	Context("when a filename which must be turned into an executable filename is input", func() {
    15  		It("does nothing on unix", func() {
    16  			myPath := filepath.Join("foo", "bar")
    17  			Expect(ExecutableFilename(myPath)).To(Equal(myPath))
    18  		})
    19  	})
    20  })