Fix rubocop offenses

parent 1bda6fdf
......@@ -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 = {})
......
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment