Removed unneeded newline in issuables_helper_spec and removed unneeded updated_at_by variable in issuable_app_data
This commit is contained in:
parent
b888ed59ab
commit
e591401b0b
2 changed files with 1 additions and 3 deletions
|
@ -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
|
||||||
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),
|
||||||
|
|
Loading…
Reference in a new issue