chore: spec fixes
This commit is contained in:
parent
d773978b67
commit
4af3884e35
2 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@ class Integrations::Dialogflow::ProcessorService
|
|||
|
||||
def perform
|
||||
message = event_data[:message]
|
||||
return if message.private?
|
||||
return if message.is_private_note?
|
||||
return unless processable_message?(message)
|
||||
return unless message.conversation.bot?
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@ describe Integrations::Dialogflow::ProcessorService do
|
|||
end
|
||||
|
||||
context 'when message is private' do
|
||||
let(:message) { create(:message, account: account, conversation: conversation, private: true) }
|
||||
let(:message) { create(:message, account: account, conversation: conversation, is_private_note: true) }
|
||||
|
||||
it 'returns nil' do
|
||||
expect(processor.perform).to be(nil)
|
||||
|
|
Loading…
Reference in a new issue