fix: issue with slack job (#7179)
This commit is contained in:
@@ -25,7 +25,7 @@ RSpec.describe HookJob do
|
||||
it 'calls SendOnSlackJob when its a slack hook' do
|
||||
hook = create(:integrations_hook, app_id: 'slack', account: account)
|
||||
allow(SendOnSlackJob).to receive(:perform_later).and_return(process_service)
|
||||
expect(SendOnSlackJob).to receive(:perform_later).with(message: event_data[:message], hook: hook)
|
||||
expect(SendOnSlackJob).to receive(:perform_later).with(event_data[:message], hook)
|
||||
described_class.perform_now(hook, event_name, event_data)
|
||||
end
|
||||
|
||||
@@ -34,7 +34,7 @@ RSpec.describe HookJob do
|
||||
hook = create(:integrations_hook, app_id: 'slack', account: account)
|
||||
allow(SendOnSlackJob).to receive(:set).with(wait: 2.seconds).and_return(SendOnSlackJob)
|
||||
allow(SendOnSlackJob).to receive(:perform_later).and_return(process_service)
|
||||
expect(SendOnSlackJob).to receive(:perform_later).with(message: event_data[:message], hook: hook)
|
||||
expect(SendOnSlackJob).to receive(:perform_later).with(event_data[:message], hook)
|
||||
described_class.perform_now(hook, event_name, event_data)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user