Commit e591401b authored by Luke "Jared" Bennett's avatar Luke "Jared" Bennett

Removed unneeded newline in issuables_helper_spec and removed unneeded...

Removed unneeded newline in issuables_helper_spec and removed unneeded updated_at_by variable in issuable_app_data
parent b888ed59
...@@ -205,9 +205,8 @@ module IssuablesHelper ...@@ -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)
......
...@@ -197,7 +197,6 @@ describe IssuablesHelper do ...@@ -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),
......
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