Fix not found text

This commit is contained in:
Oliver Günther
2020-07-01 14:07:06 +02:00
parent 262b457f19
commit 91d4f1a0e8
4 changed files with 3 additions and 4 deletions
+1
View File
@@ -1,4 +1,5 @@
#-- encoding: UTF-8
#-- copyright
# OpenProject is an open source project management software.
# Copyright (C) 2012-2020 the OpenProject GmbH
@@ -63,8 +63,6 @@ module JobStatus
##
# Update the status code for a given job
def upsert_status(status:, **args)
upsert_attributes =
# Can't use upsert, as we only want to insert the user_id once
# and not update it repeatedly
resource = ::JobStatus::Status.find_or_initialize_by(job_id: job_id)
+1 -1
View File
@@ -6,7 +6,7 @@ en:
title: 'Background job status'
redirect: 'You are being redirected.'
generic_messages:
not_found: 'This job could (no longer) be found.'
not_found: 'This job could not be found.'
in_queue: 'The job has been queued and will be processed shortly.'
in_process: 'The job is currently being processed.'
error: 'The job has failed to complete.'
@@ -39,6 +39,6 @@ describe 'Job status', type: :feature, js: true do
visit '/job_statuses/something-that-does-not-exist'
expect(page).to have_selector('.icon-big.icon-help', wait: 10)
expect(page).to have_content 'This job could (no longer) be found.'
expect(page).to have_content I18n.t('js.job_status.generic_messages.not_found')
end
end