Commit de640967 authored by Rémy Coutable's avatar Rémy Coutable

Fix a flaky spec by using contain_exactly instead of eq

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 1cf5e3de
...@@ -165,7 +165,7 @@ RSpec.describe Issue do ...@@ -165,7 +165,7 @@ RSpec.describe Issue do
describe '.not_in_iterations' do describe '.not_in_iterations' do
it 'returns issues not in selected iterations' do it 'returns issues not in selected iterations' do
expect(described_class.count).to eq 3 expect(described_class.count).to eq 3
expect(described_class.not_in_iterations([iteration1])).to eq [iteration2_issue, issue_no_iteration] expect(described_class.not_in_iterations([iteration1])).to contain_exactly(iteration2_issue, issue_no_iteration)
end end
end end
......
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