summaryrefslogtreecommitdiff
path: root/spec/services/todo_service_spec.rb
diff options
context:
space:
mode:
authorSean McGivern <sean@mcgivern.me.uk>2017-11-06 13:32:54 +0000
committerSean McGivern <sean@mcgivern.me.uk>2017-11-06 13:32:54 +0000
commitcfc932cad10b1d6c494222e9d91aa75583b56145 (patch)
tree3fe7ac101b45b82b1aa552fe1bbed14f3acf7aa3 /spec/services/todo_service_spec.rb
parenta6fad00c16809782b65bb753bfab43292f238fee (diff)
parent906d2f03d1260baac52c0050e60fbc2b87f27400 (diff)
downloadgitlab-ce-cfc932cad10b1d6c494222e9d91aa75583b56145.tar.gz
Merge branch 'jk-delete-epic-backport' into 'master'
Refactor issuable destroy action See merge request gitlab-org/gitlab-ce!15203
Diffstat (limited to 'spec/services/todo_service_spec.rb')
-rw-r--r--spec/services/todo_service_spec.rb12
1 files changed, 2 insertions, 10 deletions
diff --git a/spec/services/todo_service_spec.rb b/spec/services/todo_service_spec.rb
index a9b34a5258a..dc2673abc73 100644
--- a/spec/services/todo_service_spec.rb
+++ b/spec/services/todo_service_spec.rb
@@ -248,11 +248,11 @@ describe TodoService do
end
end
- describe '#destroy_issue' do
+ describe '#destroy_issuable' do
it 'refresh the todos count cache for the user' do
expect(john_doe).to receive(:update_todos_count_cache).and_call_original
- service.destroy_issue(issue, john_doe)
+ service.destroy_issuable(issue, john_doe)
end
end
@@ -643,14 +643,6 @@ describe TodoService do
end
end
- describe '#destroy_merge_request' do
- it 'refresh the todos count cache for the user' do
- expect(john_doe).to receive(:update_todos_count_cache).and_call_original
-
- service.destroy_merge_request(mr_assigned, john_doe)
- end
- end
-
describe '#reassigned_merge_request' do
it 'creates a pending todo for new assignee' do
mr_unassigned.update_attribute(:assignee, john_doe)