Skip to content

Commit

Permalink
Deprecated behavior - Passing an arg to force association to reload i…
Browse files Browse the repository at this point in the history
…s 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 <top (required)> at /home/runner/work/talk-api/talk-api/spec/models/message_spec.rb:68)
  • Loading branch information
yuenmichelle1 committed Aug 22, 2024
1 parent d06bfe5 commit 7bc43c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/models/message_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7bc43c8

Please sign in to comment.