Skip to content

Commit

Permalink
add test for new task flag
Browse files Browse the repository at this point in the history
  • Loading branch information
markdboyd committed Dec 17, 2024
1 parent c699f4a commit 9fc5e51
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions out/command_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,22 @@ var _ = Describe("Out Command", func() {
})
})

Describe("task handling", func() {
Context("when task is specified", func() {
BeforeEach(func() {
request.Params.Task = true
})

It("sets noStart to true", func() {
_, err := command.Run(request)
Expect(err).NotTo(HaveOccurred())

_, _, _, _, _, _, _, _, task := cloudFoundry.PushAppArgsForCall(0)
Expect(task).To(Equal(true))
})
})
})

Context("setting environment variables provided as params", func() {
var err error
var tempFile *os.File
Expand Down

0 comments on commit 9fc5e51

Please sign in to comment.