Skip to content

Commit

Permalink
Fix flaky specs
Browse files Browse the repository at this point in the history
Database can return project children in any order.
  • Loading branch information
cbliard committed Feb 2, 2024
1 parent 3fd6492 commit ea1c617
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/models/project_spec.rb
Expand Up @@ -310,10 +310,10 @@
end
end

describe '#desendants' do
describe '#descendants' do
it 'returns the descendants of the work package' do
expect(root_project.descendants)
.to eq [parent_project, child_project1, child_project2]
.to contain_exactly(parent_project, child_project1, child_project2)
end

it 'returns empty array if there are no descendants' do
Expand All @@ -325,7 +325,7 @@
describe '#children' do
it 'returns the children of the work package' do
expect(parent_project.children)
.to eq [child_project1, child_project2]
.to contain_exactly(child_project1, child_project2)
end

it 'returns empty array if there are no descendants' do
Expand Down

0 comments on commit ea1c617

Please sign in to comment.