fix flaky test by imposing a stable sort order

This commit is contained in:
Paul Chavard 2021-02-09 15:04:28 +01:00
parent 2c089f53dd
commit c04077ca34

View file

@ -38,7 +38,7 @@ describe 'new_administrateur/procedures/invited_expert_list.html.haml', type: :v
it 'has 2 experts and match array' do
expect(@invited_expert_emails.count).to eq(2)
expect(@invited_expert_emails).to eq([expert.email, expert2.email])
expect(@invited_expert_emails).to eq([expert.email, expert2.email].sort)
end
end
end