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/draft_notes/publish_service_spec.rb')
-rw-r--r--spec/services/draft_notes/publish_service_spec.rb9
1 files changed, 6 insertions, 3 deletions
diff --git a/spec/services/draft_notes/publish_service_spec.rb b/spec/services/draft_notes/publish_service_spec.rb
index dab06637c1a..48959baeaa5 100644
--- a/spec/services/draft_notes/publish_service_spec.rb
+++ b/spec/services/draft_notes/publish_service_spec.rb
@@ -292,9 +292,12 @@ RSpec.describe DraftNotes::PublishService, feature_category: :code_review_workfl
other_user = create(:user)
project.add_developer(other_user)
- create(:draft_note, merge_request: merge_request,
- author: user,
- note: "thanks\n/assign #{other_user.to_reference}")
+ create(
+ :draft_note,
+ merge_request: merge_request,
+ author: user,
+ note: "thanks\n/assign #{other_user.to_reference}"
+ )
expect { publish }.to change { DraftNote.count }.by(-1).and change { Note.count }.by(2)
expect(merge_request.reload.assignees).to match_array([other_user])