From c979c5feb54d711936f0ae42c215a66befb72c1a Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Mon, 23 Jun 2025 16:24:02 +0300 Subject: [PATCH] Change incomplete report flash style from success to warning --- app/controllers/reports_controller.rb | 2 +- test/controllers/reports_controller_test.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/reports_controller.rb b/app/controllers/reports_controller.rb index e4a0bf41b..70278bf06 100644 --- a/app/controllers/reports_controller.rb +++ b/app/controllers/reports_controller.rb @@ -33,7 +33,7 @@ class ReportsController < ApplicationController redirect_to helpers.reportable_url(@report.issue.reportable), :notice => t(".successful_report") else - flash.now[:notice] = t(".provide_details") + flash.now[:warning] = t(".provide_details") render :action => "new" end end diff --git a/test/controllers/reports_controller_test.rb b/test/controllers/reports_controller_test.rb index a7f65de62..432b6c352 100644 --- a/test/controllers/reports_controller_test.rb +++ b/test/controllers/reports_controller_test.rb @@ -65,7 +65,7 @@ class ReportsControllerTest < ActionDispatch::IntegrationTest end assert_response :success assert_template :new - assert_match(/Please provide the required details/, flash[:notice]) + assert_match(/Please provide the required details/, flash[:warning]) assert_equal 1, issue.reports.count end -- 2.39.5