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:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-11-18 16:16:36 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-11-18 16:16:36 +0300
commit311b0269b4eb9839fa63f80c8d7a58f32b8138a0 (patch)
tree07e7870bca8aed6d61fdcc810731c50d2c40af47 /spec/services/import/github/notes/create_service_spec.rb
parent27909cef6c4170ed9205afa7426b8d3de47cbb0c (diff)
Add latest changes from gitlab-org/gitlab@14-5-stable-eev14.5.0-rc42
Diffstat (limited to 'spec/services/import/github/notes/create_service_spec.rb')
-rw-r--r--spec/services/import/github/notes/create_service_spec.rb24
1 files changed, 24 insertions, 0 deletions
diff --git a/spec/services/import/github/notes/create_service_spec.rb b/spec/services/import/github/notes/create_service_spec.rb
new file mode 100644
index 00000000000..57699def848
--- /dev/null
+++ b/spec/services/import/github/notes/create_service_spec.rb
@@ -0,0 +1,24 @@
+# frozen_string_literal: true
+
+require 'spec_helper'
+
+RSpec.describe Import::Github::Notes::CreateService do
+ it 'does not support quick actions' do
+ project = create(:project, :repository)
+ user = create(:user)
+ merge_request = create(:merge_request, source_project: project)
+
+ project.add_maintainer(user)
+
+ note = described_class.new(
+ project,
+ user,
+ note: '/close',
+ noteable_type: 'MergeRequest',
+ noteable_id: merge_request.id
+ ).execute
+
+ expect(note.note).to eq('/close')
+ expect(note.noteable.closed?).to be(false)
+ end
+end