Skip to content

Commit

Permalink
adjust the error messages for buildpack and extension flags
Browse files Browse the repository at this point in the history
  • Loading branch information
pacostas committed Apr 26, 2023
1 parent b304e83 commit 18f9a4a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions integration/pack_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -352,11 +352,11 @@ func testPack(t *testing.T, context spec.G, it spec.S) {
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\", \"output\", \"version\" not set"))
Expect(session.Err.Contents()).To(ContainSubstring("Error: required flag(s) \"output\", \"version\" not set"))
})
})

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, "pack",
Expand All @@ -369,7 +369,7 @@ func testPack(t *testing.T, context spec.G, it spec.S) {
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: \"buildpack\" or \"extension\" flag is required"))
})
})

Expand Down

0 comments on commit 18f9a4a

Please sign in to comment.