summaryrefslogtreecommitdiff
path: root/spec/services/system_note_service_spec.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-08-10 00:09:11 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-08-10 00:09:11 +0000
commit65093195c2c956c73f587ee51cc9fcafe4708e96 (patch)
tree6097e3663d89c7a3f429c6ba752a7661b31b7665 /spec/services/system_note_service_spec.rb
parentc03dce2dc9f0f257faac4d43d208d96320ca5c0e (diff)
downloadgitlab-ce-65093195c2c956c73f587ee51cc9fcafe4708e96.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/services/system_note_service_spec.rb')
-rw-r--r--spec/services/system_note_service_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/services/system_note_service_spec.rb b/spec/services/system_note_service_spec.rb
index 81c48fb6e15..c7c5aeae670 100644
--- a/spec/services/system_note_service_spec.rb
+++ b/spec/services/system_note_service_spec.rb
@@ -134,15 +134,15 @@ RSpec.describe SystemNoteService do
end
end
- describe '.change_due_date' do
- let(:due_date) { double }
+ describe '.change_start_date_or_due_date' do
+ let(:changed_dates) { double }
it 'calls TimeTrackingService' do
expect_next_instance_of(::SystemNotes::TimeTrackingService) do |service|
- expect(service).to receive(:change_due_date).with(due_date)
+ expect(service).to receive(:change_start_date_or_due_date).with(changed_dates)
end
- described_class.change_due_date(noteable, project, author, due_date)
+ described_class.change_start_date_or_due_date(noteable, project, author, changed_dates)
end
end