Commit b35bec4e authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Merge branch 'fix-flaky-spec' into 'master'

Fix a flaky spec by using contain_exactly instead of eq

See merge request gitlab-org/gitlab!57388
parents 3e1f19f1 de640967
......@@ -165,7 +165,7 @@ RSpec.describe Issue do
describe '.not_in_iterations' do
it 'returns issues not in selected iterations' do
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
......
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