diff options
author | Toon Claes <toon@gitlab.com> | 2018-09-27 10:46:26 +0200 |
---|---|---|
committer | Toon Claes <toon@gitlab.com> | 2018-09-27 11:07:26 +0200 |
commit | 5a376063af608eb2817cf272a3a18c999a277541 (patch) | |
tree | 216a97c0a3d8022d7ad90e409adecb67e79d11ba /spec | |
parent | 62dde35069e430101e52359fbdba3fa14720195d (diff) | |
download | gitlab-ce-5a376063af608eb2817cf272a3a18c999a277541.tar.gz |
Allow /copy_metadata for new issues
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/50181
Diffstat (limited to 'spec')
-rw-r--r-- | spec/services/quick_actions/interpret_service_spec.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/services/quick_actions/interpret_service_spec.rb b/spec/services/quick_actions/interpret_service_spec.rb index 06cad9c00d2..ac0ca1f33a5 100644 --- a/spec/services/quick_actions/interpret_service_spec.rb +++ b/spec/services/quick_actions/interpret_service_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' describe QuickActions::InterpretService do @@ -863,6 +865,13 @@ describe QuickActions::InterpretService do let(:source_issuable) { create(:labeled_issue, project: project, labels: [inreview_label, todo_label]) } let(:content) { "/copy_metadata #{source_issuable.to_reference}" } + let(:issuable) { build(:issue, project: project) } + end + + it_behaves_like 'copy_metadata command' do + let(:source_issuable) { create(:labeled_issue, project: project, labels: [inreview_label, todo_label]) } + + let(:content) { "/copy_metadata #{source_issuable.to_reference}" } let(:issuable) { issue } end |