From 66982d038924de48c4328787fa085c16711601b2 Mon Sep 17 00:00:00 2001 From: Hiroshi Hayakawa Date: Thu, 5 Sep 2024 20:09:54 +0900 Subject: [PATCH] Improve descriptions for some test cases. Signed-off-by: Hiroshi Hayakawa --- internal/commands/build_test.go | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/internal/commands/build_test.go b/internal/commands/build_test.go index ca0e3fb63..920969881 100644 --- a/internal/commands/build_test.go +++ b/internal/commands/build_test.go @@ -69,7 +69,8 @@ func testBuildCommand(t *testing.T, when spec.G, it spec.S) { }) when("a builder and image are set", func() { - it("builds an image with a builder", func() { + it("builds an image with a builder"+ + "and warns that the positional argument will not be treated as the source path", func() { mockClient.EXPECT(). Build(gomock.Any(), EqBuildOptionsWithImage("my-builder", "image")). Return(nil) @@ -972,7 +973,8 @@ builder = "my-builder" }) when("path to save the image is provided", func() { - it("build is called with oci layout configuration", func() { + it("builds with oci layout configuration"+ + "and it doesn't warn that the positional argument will not be treated as the source path", func() { sparse = false mockClient.EXPECT(). Build(gomock.Any(), EqBuildOptionsWithLayoutConfig("image", previousImage, sparse, layoutDir)). @@ -986,7 +988,8 @@ builder = "my-builder" }) when("previous-image flag is provided", func() { - it("build is called with oci layout configuration", func() { + it("builds with oci layout configuration"+ + "and it doesn't warn that the positional argument will not be treated as the source path", func() { sparse = false previousImage = "my-previous-image" mockClient.EXPECT(). @@ -1001,7 +1004,8 @@ builder = "my-builder" }) when("-sparse flag is provided", func() { - it("build is called with oci layout configuration and sparse true", func() { + it("build with oci layout configuration and sparse true"+ + "and it doesn't warn that the positional argument will not be treated as the source path", func() { sparse = true mockClient.EXPECT(). Build(gomock.Any(), EqBuildOptionsWithLayoutConfig("image", previousImage, sparse, layoutDir)).