Skip to content

Commit

Permalink
fix : 팀빌딩 종료 시 팀빌딩 상태 조건 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
kssumin committed Feb 21, 2024
1 parent fc1fb11 commit 9124220
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ void save_team_building() {
@DisplayName("진행 중인 팀빌딩의 작성자가 아니라면 수정 권한이 없음 예외가 발생한다.")
void denied_edit_team_building() {
// given
TeamBuildingEntity 생성된_팀빌딩 = TeamBuildingFixture.팀빌딩(TeamBuildingStatus.PROGRESS, 1L);
when(teamBuildingRepository.findByStatus(TeamBuildingStatus.PROGRESS))
TeamBuildingEntity 생성된_팀빌딩 = TeamBuildingFixture.팀빌딩(TeamBuildingStatus.COMPLETE, 1L);
when(teamBuildingRepository.findByStatus(TeamBuildingStatus.COMPLETE))
.thenReturn(Optional.of(생성된_팀빌딩));

// when & then
Expand Down

0 comments on commit 9124220

Please sign in to comment.