summaryrefslogtreecommitdiff
path: root/test/controllers/assets_controller_test.rb
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-07-25 03:51:44 +0200
committererdgeist <erdgeist@erdgeist.org>2026-07-25 03:51:44 +0200
commitbaace1fa5df46694ddd515dc3bbca59b22df8692 (patch)
tree6a8b587ca5d6d38377fe132b02c857f1c4149231 /test/controllers/assets_controller_test.rb
parented32bc6902ab634451539770bcd910662212e01a (diff)
Extract flashes to i18n and stop dispatching on submit labels
Diffstat (limited to 'test/controllers/assets_controller_test.rb')
-rw-r--r--test/controllers/assets_controller_test.rb2
1 files changed, 1 insertions, 1 deletions
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
102 assert_response :redirect 102 assert_response :redirect
103 asset = Asset.last 103 asset = Asset.last
104 assert_includes node.draft.assets.reload, asset 104 assert_includes node.draft.assets.reload, asset
105 assert_match /attached/, flash[:notice] 105 assert_equal I18n.t("flash.assets.attached", :title => node.title), flash[:notice]
106 end 106 end
107 107
108 test "create against a foreign-locked node keeps the asset but refuses the attach" do 108 test "create against a foreign-locked node keeps the asset but refuses the attach" do