Skip to content

Commit

Permalink
fix: 학습지 구독 취소 URI 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
hun-ca committed Jun 22, 2024
1 parent a0d2356 commit c690ad3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ package com.few.api.web.controller.workbook.request

data class CancelSubWorkBookBody(
val email: String,
val opinion: String
val opinion: String,
val reason: String
)
Original file line number Diff line number Diff line change
Expand Up @@ -162,16 +162,18 @@ class WorkBookControllerTest : ControllerTestSpec() {
}

@Test
@DisplayName("[DELETE] /api/v1/workbooks/{workbookId}/csubs")
@DisplayName("[POST] /api/v1/workbooks/{workbookId}/unsubs")
fun cancelSubWorkBook() {
// given
val api = "CancelSubWorkBook"
val uri = UriComponentsBuilder.newInstance()
.path("$BASE_URL/{workbookId}/csubs")
.path("$BASE_URL/{workbookId}/unsubs")
.build()
.toUriString()
// set usecase mock
val body = objectMapper.writeValueAsString(CancelSubWorkBookBody(email = "[email protected]", opinion = "취소합니다."))
val body = objectMapper.writeValueAsString(
CancelSubWorkBookBody(email = "[email protected]", opinion = "취소합니다.", reason = "이유없음")
)

// when
this.webTestClient.post()
Expand Down

0 comments on commit c690ad3

Please sign in to comment.