fix: undefined method 'zero?' for nil:NilClass (#8689)

This commit is contained in:
Vishnu Narayanan
2024-01-15 15:07:36 +05:30
committed by GitHub
parent 7d6085cefd
commit e7e14f01e4
2 changed files with 9 additions and 2 deletions

View File

@@ -39,5 +39,10 @@ describe ActionService do
action_service.assign_agent(['nil'])
expect(conversation.reload.assignee).to be_nil
end
it 'unassigns the team if team_id is nil' do
action_service.assign_team([nil])
expect(conversation.reload.team).to be_nil
end
end
end