Commit 3a98d7a0 authored by Bob Van Landuyt's avatar Bob Van Landuyt

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

Fix flaky spec due to indeterminate record order

See merge request gitlab-org/gitlab!44755
parents e38e3363 a3936595
......@@ -51,7 +51,7 @@ RSpec.describe Mutations::Boards::Update do
board.resource_parent.add_reporter(user)
end
it 'updates issue with correct values' do
it 'updates board with correct values' do
expected_attributes = {
name: 'Test board 1',
hide_backlog_list: true,
......@@ -59,7 +59,7 @@ RSpec.describe Mutations::Boards::Update do
weight: 3,
assignee: user,
milestone: milestone,
labels: [label1, label2]
labels: contain_exactly(label1, label2)
}
subject
......@@ -76,7 +76,7 @@ RSpec.describe Mutations::Boards::Update do
it 'updates board with correct labels' do
subject
expect(board.reload.labels.pluck(:title)).to eq(new_labels)
expect(board.reload.labels.pluck(:title)).to match_array(new_labels)
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