Skip to content

Commit

Permalink
fixing error case scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
pacostas authored and robdimsdale committed Aug 28, 2024
1 parent ce382b2 commit b07bbef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integration/summarize_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ version = "3.4.5"
})

context("failure cases", func() {
context("when the required buildpack flag is not set", func() {
context("when the required buildpack or extension flag is not set", func() {
it("prints an error message", func() {
command := exec.Command(
path, "summarize",
Expand All @@ -443,7 +443,7 @@ version = "3.4.5"
Expect(err).NotTo(HaveOccurred())
Eventually(session).Should(gexec.Exit(1), func() string { return buffer.String() })

Expect(session.Err.Contents()).To(ContainSubstring("Error: required flag(s) \"buildpack\" not set"))
Expect(session.Err.Contents()).To(ContainSubstring("Error: at least one of the flags in the group [buildpack extension] is required"))
})
})
})
Expand Down

0 comments on commit b07bbef

Please sign in to comment.