GitLab wurde erfolgreich aktualisiert. Durch regelmäßige Updates bleibt das THM GitLab sicher. Danke für Ihre Geduld.

Commit 09adc0f6 authored by Douwe Maan's avatar Douwe Maan

Merge branch '53655-board-milestone-fix' into 'master'

Port of

See merge request gitlab-org/gitlab-ce!23868
parents 5a0629b4 fdc928c7
......@@ -39,6 +39,22 @@
context 'when moving to backlog' do
let(:milestone) { create(:milestone, project: project) }
let!(:backlog) { create(:backlog_list, board: board1) }
let(:issue) { create(:labeled_issue, project: project, labels: [bug, development, testing, regression], milestone: milestone) }
let(:params) { { board_id:, from_list_id:, to_list_id: } }
it 'keeps labels and milestone' do, user, params).execute(issue)
expect(issue.labels).to contain_exactly(bug, regression)
expect(issue.milestone).to eq(milestone)
context 'when moving from closed' do
let(:issue) { create(:labeled_issue, :closed, project: project, labels: [bug]) }
let(:params) { { board_id:, from_list_id:, to_list_id: } }
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