diff --git a/app/helpers/issuables_helper.rb b/app/helpers/issuables_helper.rb index a4197d34db3..e9389178e68 100644 --- a/app/helpers/issuables_helper.rb +++ b/app/helpers/issuables_helper.rb @@ -205,9 +205,8 @@ module IssuablesHelper 'can-update' => can?(current_user, :update_issue, issue).to_s, 'issuable-ref' => issue.to_reference || '' } - updated_at_by = updated_at_by(issue) - data.merge(updated_at_by) + data.merge(updated_at_by(issue)) end def updated_at_by(issuable) diff --git a/spec/helpers/issuables_helper_spec.rb b/spec/helpers/issuables_helper_spec.rb index b5dd0f21cbd..728fdfc85f2 100644 --- a/spec/helpers/issuables_helper_spec.rb +++ b/spec/helpers/issuables_helper_spec.rb @@ -197,7 +197,6 @@ describe IssuablesHelper do let(:user) { create(:user) } 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_app_data) do { endpoint: realtime_changes_namespace_project_issue_path(project.namespace, project, issue),