Skip to content

Commit

Permalink
Remove unused test from collapse and fold in testdata examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Zachary Scott committed Jun 22, 2018
1 parent 0a74726 commit 007ff3a
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions cmd/collapse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package cmd_test

import (
"io/ioutil"
"os"
"os/exec"
"path/filepath"

Expand All @@ -12,39 +11,6 @@ import (
)

var _ = Describe("collapse", func() {
var (
tempRoot string
command *exec.Cmd
)

BeforeEach(func() {
var err error
tempRoot, err = ioutil.TempDir("", "circleci-cli-test-")
Expect(err).ToNot(HaveOccurred())

command = exec.Command(pathCLI, "collapse", "-r", tempRoot)
})

AfterEach(func() {
Expect(os.RemoveAll(tempRoot)).To(Succeed())
})

Describe("with two YAML files within separate directory structures", func() {
BeforeEach(func() {
for _, dirName := range []string{"one", "two"} {
path := filepath.Join(tempRoot, "orbs", dirName, "commands")
Expect(os.MkdirAll(path, 0700)).To(Succeed())
Expect(ioutil.WriteFile(
filepath.Join(path, "file.yml"),
[]byte("contents_one: 1\ncontents_two: 2\n"),
0600),
).To(Succeed())
}
})
})
})

var _ = Describe("collapse with testdata", func() {
var (
command *exec.Cmd
results []byte
Expand Down

0 comments on commit 007ff3a

Please sign in to comment.