Commit bf33d101 authored by Heinrich Lee Yu's avatar Heinrich Lee Yu Committed by Mayra Cabrera

Use match_array in mocking email recipients

The order here doesn't matter and causes failures in CI
parent 59a640a8
......@@ -100,7 +100,7 @@ describe CiMinutesUsageNotifyService do
it 'sends the email to all the owners' do
expect(CiMinutesUsageMailer).to receive(:notify)
.with(namespace.name, [user_2.email, user.email])
.with(namespace.name, match_array([user_2.email, user.email]))
.and_return(spy)
subject
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment