summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-02-17 14:36:37 -0200
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-02-20 12:10:26 -0200
commit4bfc377ff62656879691c0a6fc03a4b2c534f42e (patch)
treea2a684bc71bf22bead6da77a626ddc9bb73912b9 /spec
parent56a5fc0cd331143c9a2b4215db3dba6cefd6cc3e (diff)
downloadgitlab-ce-4bfc377ff62656879691c0a6fc03a4b2c534f42e.tar.gz
Rename TaskService#mark_as_done to mark_pending_tasks_as_done
Diffstat (limited to 'spec')
-rw-r--r--spec/services/task_service_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/services/task_service_spec.rb b/spec/services/task_service_spec.rb
index 8e78f4e242a..0cd0011b041 100644
--- a/spec/services/task_service_spec.rb
+++ b/spec/services/task_service_spec.rb
@@ -63,7 +63,7 @@ describe TaskService, services: true do
end
end
- describe '#mark_as_done' do
+ describe '#mark_pending_tasks_as_done' do
let!(:first_pending_task) do
create(:pending_assigned_task, user: john_doe, project: project, target: assigned_issue, author: author)
end
@@ -73,7 +73,7 @@ describe TaskService, services: true do
end
it 'marks related pending tasks to the target for the user as done' do
- service.mark_as_done(assigned_issue, john_doe)
+ service.mark_pending_tasks_as_done(assigned_issue, john_doe)
expect(first_pending_task.reload).to be_done
expect(second_pending_task.reload).to be_done