From a202c5046144eaec09ead85f49b604f1662536fd Mon Sep 17 00:00:00 2001 From: haiseong Date: Wed, 23 Oct 2024 16:06:31 +0900 Subject: [PATCH] :bug: fix docs uri --- .../pengcook/recipe/controller/RecipeControllerTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/src/test/java/net/pengcook/recipe/controller/RecipeControllerTest.java b/backend/src/test/java/net/pengcook/recipe/controller/RecipeControllerTest.java index 8758bcf3..02a0ab50 100644 --- a/backend/src/test/java/net/pengcook/recipe/controller/RecipeControllerTest.java +++ b/backend/src/test/java/net/pengcook/recipe/controller/RecipeControllerTest.java @@ -316,8 +316,8 @@ void updateRecipe() { new IngredientCreateRequest("WaterMelon", Requirement.OPTIONAL, null) ); List recipeStepRequests = List.of( - new RecipeStepRequest("스텝1 이미지.jpg", "스텝1 설명", 1, "00:10:00"), - new RecipeStepRequest(null, "스텝2 설명", 2, "00:20:00") + new RecipeStepRequest("변경된 스텝 이미지 1.jpg", "변경된 스텝 설명 1", 1, "00:10:00"), + new RecipeStepRequest("변경된 스텝 이미지 2.jpg", "변경된 스텝 설명 2", 2, "00:20:00") ); RecipeUpdateRequest recipeUpdateRequest = new RecipeUpdateRequest( "변경된 레시피 제목", @@ -352,7 +352,7 @@ void updateRecipe() { ))) .contentType(ContentType.JSON) .body(recipeUpdateRequest) - .when().put("/recipes/" + recipeId) + .when().put("/recipes/{recipeId}", recipeId) .then().log().all() .statusCode(200); }