feat: Add all filter for conversations (#3102)

This commit is contained in:
Pranav Raj S
2021-09-29 16:23:39 +05:30
committed by GitHub
parent d55a48037a
commit cc244833d0
11 changed files with 81 additions and 22 deletions

View File

@@ -48,6 +48,15 @@ describe ::ConversationFinder do
end
end
context 'with status all' do
let(:params) { { status: 'all' } }
it 'returns all conversations' do
result = conversation_finder.perform
expect(result[:conversations].length).to be 5
end
end
context 'with assignee_type assigned' do
let(:params) { { assignee_type: 'assigned' } }