Removed unneeded newline in issuables_helper_spec and removed unneeded updated_at_by variable in issuable_app_data

This commit is contained in:
Luke "Jared" Bennett 2017-06-02 10:27:53 +01:00
parent b888ed59ab
commit e591401b0b
No known key found for this signature in database
GPG key ID: 402ED51FB5D306C2
2 changed files with 1 additions and 3 deletions

View file

@ -205,9 +205,8 @@ module IssuablesHelper
'can-update' => can?(current_user, :update_issue, issue).to_s, 'can-update' => can?(current_user, :update_issue, issue).to_s,
'issuable-ref' => issue.to_reference || '' 'issuable-ref' => issue.to_reference || ''
} }
updated_at_by = updated_at_by(issue)
data.merge(updated_at_by) data.merge(updated_at_by(issue))
end end
def updated_at_by(issuable) def updated_at_by(issuable)

View file

@ -197,7 +197,6 @@ describe IssuablesHelper do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:project) { create(:project) } let(:project) { create(:project) }
let(:issue) { create(:issue, project: project, last_edited_by: user, created_at: 3.days.ago, updated_at: 2.days.ago, last_edited_at: 2.days.ago) } let(:issue) { create(:issue, project: project, last_edited_by: user, created_at: 3.days.ago, updated_at: 2.days.ago, last_edited_at: 2.days.ago) }
let(:issue_app_data) do let(:issue_app_data) do
{ {
endpoint: realtime_changes_namespace_project_issue_path(project.namespace, project, issue), endpoint: realtime_changes_namespace_project_issue_path(project.namespace, project, issue),