From baace1fa5df46694ddd515dc3bbca59b22df8692 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Sat, 25 Jul 2026 03:51:44 +0200 Subject: Extract flashes to i18n and stop dispatching on submit labels --- test/controllers/assets_controller_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/controllers/assets_controller_test.rb') diff --git a/test/controllers/assets_controller_test.rb b/test/controllers/assets_controller_test.rb index 4be2e8a1..467e1a68 100644 --- a/test/controllers/assets_controller_test.rb +++ b/test/controllers/assets_controller_test.rb @@ -102,7 +102,7 @@ class AssetsControllerTest < ActionController::TestCase assert_response :redirect asset = Asset.last assert_includes node.draft.assets.reload, asset - assert_match /attached/, flash[:notice] + assert_equal I18n.t("flash.assets.attached", :title => node.title), flash[:notice] end test "create against a foreign-locked node keeps the asset but refuses the attach" do -- cgit v1.3