Commit 562da3de authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Fix flaky spec due to undeterministic DB order

parent ac510e71
...@@ -152,7 +152,7 @@ RSpec.describe Issue do ...@@ -152,7 +152,7 @@ RSpec.describe Issue do
describe '.any_iteration' do describe '.any_iteration' do
it 'returns only issues with an iteration assigned' do it 'returns only issues with an iteration assigned' do
expect(described_class.count).to eq 3 expect(described_class.count).to eq 3
expect(described_class.any_iteration).to eq [iteration1_issue, iteration2_issue] expect(described_class.any_iteration).to contain_exactly(iteration1_issue, iteration2_issue)
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