Feature: Slack - receive messages, create threads, send replies (#974)
Co-authored-by: Pranav Raj S <pranav@thoughtwoot.com>
This commit is contained in:
@@ -4,7 +4,7 @@ RSpec.describe 'Api::V1::Integrations::Webhooks', type: :request do
|
||||
describe 'POST /api/v1/integrations/webhooks' do
|
||||
it 'consumes webhook' do
|
||||
builder = Integrations::Slack::IncomingMessageBuilder.new({})
|
||||
builder.stub(:perform) { true }
|
||||
expect(builder).to receive(:perform).and_return(true)
|
||||
|
||||
expect(Integrations::Slack::IncomingMessageBuilder).to receive(:new).and_return(builder)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user