[in] creates file 'tag' containing git tag for the release being fetched
This commit is contained in:
@@ -236,6 +236,16 @@ var _ = Describe("In Command", func() {
|
||||
))
|
||||
})
|
||||
|
||||
It("stores tag in a file", func() {
|
||||
_, err := os.Stat(filepath.Join(destDir, "tag"))
|
||||
Ω(err).ShouldNot(HaveOccurred())
|
||||
|
||||
tag, err := ioutil.ReadFile(filepath.Join(destDir, "tag"))
|
||||
Ω(err).ShouldNot(HaveOccurred())
|
||||
|
||||
Ω(string(tag)).Should(Equal("v0.35.0"))
|
||||
})
|
||||
|
||||
It("fetches from the latest release", func() {
|
||||
_, err := os.Stat(filepath.Join(destDir, "example.txt"))
|
||||
Ω(err).ShouldNot(HaveOccurred())
|
||||
|
Reference in New Issue
Block a user