Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/services/issues/move_service_spec.rb')
-rw-r--r--spec/services/issues/move_service_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/services/issues/move_service_spec.rb b/spec/services/issues/move_service_spec.rb
index 36af38aef18..ef501f47f0d 100644
--- a/spec/services/issues/move_service_spec.rb
+++ b/spec/services/issues/move_service_spec.rb
@@ -259,6 +259,16 @@ RSpec.describe Issues::MoveService do
it_behaves_like 'copy or reset relative position'
end
+
+ context 'issue with escalation status' do
+ it 'keeps the escalation status' do
+ escalation_status = create(:incident_management_issuable_escalation_status, issue: old_issue)
+
+ move_service.execute(old_issue, new_project)
+
+ expect(escalation_status.reload.issue).to eq(old_issue)
+ end
+ end
end
describe 'move permissions' do