diff options
Diffstat (limited to 'spec/services/notes/destroy_service_spec.rb')
-rw-r--r-- | spec/services/notes/destroy_service_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/services/notes/destroy_service_spec.rb b/spec/services/notes/destroy_service_spec.rb index 82caec52aee..744808525f5 100644 --- a/spec/services/notes/destroy_service_spec.rb +++ b/spec/services/notes/destroy_service_spec.rb @@ -91,5 +91,13 @@ RSpec.describe Notes::DestroyService do end end end + + it 'tracks design comment removal' do + note = create(:note_on_design, project: project) + expect(Gitlab::UsageDataCounters::IssueActivityUniqueCounter).to receive(:track_issue_design_comment_removed_action).with(author: note.author, + project: project) + + described_class.new(project, user).execute(note) + end end end |