Fix rubocop offenses

This commit is contained in:
Douglas Barbosa Alexandre 2016-02-18 11:37:35 -02:00
parent 1bda6fdf6e
commit 139c513da6
2 changed files with 4 additions and 4 deletions

View File

@ -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 = {})

View File

@ -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