diff --git a/spec/models/message_spec.rb b/spec/models/message_spec.rb index b04ae71a..363be462 100644 --- a/spec/models/message_spec.rb +++ b/spec/models/message_spec.rb @@ -65,7 +65,7 @@ expect { create :message, conversation: conversation, user: destroyed_conversation.user }.to change { - conversation.user_conversations(true).where(user: destroyed_conversation.user).exists? + conversation.user_conversations.reload.where(user: destroyed_conversation.user).exists? }.from(false).to true end end