From d85c7998e5faa0da53514bae8cc2ccb9a9fe0cd3 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Sat, 18 Jul 2026 02:16:23 +0200 Subject: Teach the action log reader the Trash vocabulary Sentences for trash (with the pre-trash path), restore_from_trash (with the destination), and destroy (with the final path, read from its flat create-symmetric key). --- test/models/helpers/node_actions_helper_test.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test/models') diff --git a/test/models/helpers/node_actions_helper_test.rb b/test/models/helpers/node_actions_helper_test.rb index 5244c19..16c833b 100644 --- a/test/models/helpers/node_actions_helper_test.rb +++ b/test/models/helpers/node_actions_helper_test.rb @@ -104,4 +104,14 @@ class NodeActionsHelperTest < ActionView::TestCase assert_includes action_summary(e), "a/b" assert_not action_details?(e) end + + test "trash, restore, and destroy render their paths" do + trash = entry("trash", { "path" => { "from" => "club/old", "to" => "trash/old" } }) + restore = entry("restore_from_trash", { "path" => { "from" => "trash/old", "to" => "club/new" } }) + doomed = entry("destroy", { "path" => "trash/old" }) + + assert_includes action_summary(trash), "club/old" + assert_includes action_summary(restore), "club/new" + assert_includes action_summary(doomed), "trash/old" + end end -- cgit v1.3