From 4a1ebe35157bd37a3b4091d06a95c6646ba8680e Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Mon, 3 Nov 2025 13:39:29 +0530 Subject: [PATCH] style: fix rubocop warnings --- .../new_conversation_strategy_spec.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/spec/services/mailbox/conversation_finder_strategies/new_conversation_strategy_spec.rb b/spec/services/mailbox/conversation_finder_strategies/new_conversation_strategy_spec.rb index a3f1ef7f3..8609d0133 100644 --- a/spec/services/mailbox/conversation_finder_strategies/new_conversation_strategy_spec.rb +++ b/spec/services/mailbox/conversation_finder_strategies/new_conversation_strategy_spec.rb @@ -24,9 +24,9 @@ RSpec.describe Mailbox::ConversationFinderStrategies::NewConversationStrategy do expect(conversation.new_record?).to be(true) # Not persisted yet expect(conversation.inbox).to eq(email_channel.inbox) expect(conversation.account).to eq(account) - end.to change(Conversation, :count).by(0) # No conversation created yet - .and change(Contact, :count).by(1) # Contact is created - .and change(ContactInbox, :count).by(1) + end.to not_change(Conversation, :count) # No conversation created yet + .and change(Contact, :count).by(1) # Contact is created + .and change(ContactInbox, :count).by(1) end it 'sets conversation attributes correctly' do @@ -62,8 +62,8 @@ RSpec.describe Mailbox::ConversationFinderStrategies::NewConversationStrategy do expect(conversation).to be_a(Conversation) expect(conversation.new_record?).to be(true) # Not persisted yet expect(conversation.contact).to eq(existing_contact) - end.to change(Conversation, :count).by(0) # No conversation created yet - .and not_change(Contact, :count) + end.to not_change(Conversation, :count) # No conversation created yet + .and not_change(Contact, :count) .and not_change(ContactInbox, :count) end end