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:
authorRémy Coutable <remy@rymai.me>2018-12-18 13:08:44 +0300
committerRémy Coutable <remy@rymai.me>2018-12-18 13:08:44 +0300
commitf3d80159fcfa3c1e4d5a6d3c747ef89293288621 (patch)
tree327580fd572b17e6a6f954cf95083deaeec46b5c /spec/support
parentc516c801c5530555863b9ff52ca1f01f63c00a19 (diff)
parent9d1090d49b3077a4a785d2f624e60686d0a863e3 (diff)
Merge branch '51485-new-issue-labels-note' into 'master'
Run CommonSystemNotesService on issuable create Closes #51485 See merge request gitlab-org/gitlab-ce!23859
Diffstat (limited to 'spec/support')
-rw-r--r--spec/support/shared_examples/common_system_notes_examples.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/support/shared_examples/common_system_notes_examples.rb b/spec/support/shared_examples/common_system_notes_examples.rb
index 96ef30b7513..da5a4f3e319 100644
--- a/spec/support/shared_examples/common_system_notes_examples.rb
+++ b/spec/support/shared_examples/common_system_notes_examples.rb
@@ -1,5 +1,5 @@
shared_examples 'system note creation' do |update_params, note_text|
- subject { described_class.new(project, user).execute(issuable, [])}
+ subject { described_class.new(project, user).execute(issuable, old_labels: []) }
before do
issuable.assign_attributes(update_params)
@@ -16,7 +16,7 @@ shared_examples 'system note creation' do |update_params, note_text|
end
shared_examples 'WIP notes creation' do |wip_action|
- subject { described_class.new(project, user).execute(issuable, []) }
+ subject { described_class.new(project, user).execute(issuable, old_labels: []) }
it 'creates WIP toggle and title change notes' do
expect { subject }.to change { Note.count }.from(0).to(2)