From 7bc43c8bf091fd0ffcb00048d8ac0b7258ee5a02 Mon Sep 17 00:00:00 2001 From: yuenmichelle1 Date: Thu, 22 Aug 2024 13:28:13 -0500 Subject: [PATCH] Deprecated behavior - Passing an arg to force association to reload is deprecated. Call reload instead on message_spec.rb See deprecation warning: DEPRECATION WARNING: Passing an argument to force an association to reload is now deprecated and will be removed in Rails 5.1. Please call `reload` on the result collection proxy instead. (called from block (5 levels) in at /home/runner/work/talk-api/talk-api/spec/models/message_spec.rb:68) --- spec/models/message_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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