chore: spec fixes

This commit is contained in:
Sojan 2021-06-09 16:45:06 +05:30
parent d773978b67
commit 4af3884e35
2 changed files with 2 additions and 2 deletions

View file

@ -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?

View file

@ -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)