Match parameter with match_array to fix order mismatch

closes #7546
This commit is contained in:
Benjamin Neff 2017-08-17 02:43:03 +02:00
parent 4cb365a6f4
commit 17949ffb4e
No known key found for this signature in database
GPG key ID: 971464C3F1A90194

View file

@ -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([])