From 17949ffb4ebc83380514601a9c1026894b55e20d Mon Sep 17 00:00:00 2001 From: Benjamin Neff Date: Thu, 17 Aug 2017 02:43:03 +0200 Subject: [PATCH] Match parameter with match_array to fix order mismatch closes #7546 --- spec/models/notifications/mentioned_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/models/notifications/mentioned_spec.rb b/spec/models/notifications/mentioned_spec.rb index 65ab03a49..2256a35a8 100644 --- a/spec/models/notifications/mentioned_spec.rb +++ b/spec/models/notifications/mentioned_spec.rb @@ -14,7 +14,7 @@ describe Notifications::Mentioned do it "calls filter_mentions on self" do expect(TestNotification).to receive(:filter_mentions).with( - Mention.where(mentions_container: status_message, person: [alice, bob].map(&:person)), + match_array(Mention.where(mentions_container: status_message, person: [alice, bob].map(&:person))), status_message, [alice.id, bob.id] ).and_return([])