From dfd3f9ecb78974c4fe90a24c0e779bef87c38e09 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Mon, 18 Dec 2017 13:36:29 +0100 Subject: Referentials#validate: Update flash message * Luc specified a new flash message string to use here. Update the old one with the new version. * Move the translation key to `notice.referentials.validate` because we have multiple "operation_in_progress" messages (this one for validation, and another for referential cloning/duplication). * Add a test to confirm that the flash message is set. Refs #5317 --- app/controllers/referentials_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers/referentials_controller.rb') diff --git a/app/controllers/referentials_controller.rb b/app/controllers/referentials_controller.rb index ee1236912..f97e2c211 100644 --- a/app/controllers/referentials_controller.rb +++ b/app/controllers/referentials_controller.rb @@ -60,7 +60,7 @@ class ReferentialsController < ChouetteController def validate ComplianceControlSetCopyWorker.perform_async(params[:compliance_control_set], params[:id]) - flash[:notice] = I18n.t("referentials.operation_in_progress") + flash[:notice] = I18n.t('notice.referentials.validate') redirect_to(referential_path) end -- cgit v1.2.3