From b07bbefe964aff3010bb7c010a1121ce7e438b51 Mon Sep 17 00:00:00 2001 From: Costas Papastathis Date: Wed, 10 Jul 2024 15:22:52 +0300 Subject: [PATCH] fixing error case scenario --- integration/summarize_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/integration/summarize_test.go b/integration/summarize_test.go index 48818ff..be3cb2d 100644 --- a/integration/summarize_test.go +++ b/integration/summarize_test.go @@ -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", @@ -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")) }) }) })