diff options
-rw-r--r-- | app/helpers/tasks_helper.rb | 2 | ||||
-rw-r--r-- | spec/services/merge_requests/close_service_spec.rb | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/app/helpers/tasks_helper.rb b/app/helpers/tasks_helper.rb index 59c7d93e65e..a99f2b48a26 100644 --- a/app/helpers/tasks_helper.rb +++ b/app/helpers/tasks_helper.rb @@ -31,7 +31,7 @@ module TasksHelper def task_note_target_path(task) polymorphic_path([task.project.namespace.becomes(Namespace), - task.project, task.target], anchor: dom_id(task.note)) + task.project, task.target], anchor: dom_id(task.note)) end def task_note(text, options = {}) diff --git a/spec/services/merge_requests/close_service_spec.rb b/spec/services/merge_requests/close_service_spec.rb index 13872a1a2dd..50227af7f2b 100644 --- a/spec/services/merge_requests/close_service_spec.rb +++ b/spec/services/merge_requests/close_service_spec.rb @@ -43,9 +43,9 @@ describe MergeRequests::CloseService, services: true do expect(note.note).to include 'Status changed to closed' end - it 'marks pending tasks as done' do - expect(pending_task.reload).to be_done - end + it 'marks pending tasks as done' do + expect(pending_task.reload).to be_done + end end end end |