From 49a80c2f48531edc2a2719d77d3c5a8c111289dd Mon Sep 17 00:00:00 2001 From: erdgeist Date: Thu, 23 Jul 2026 03:58:14 +0200 Subject: Convert the log's node zoom to participants, completing subtree histories --- test/controllers/node_actions_controller_test.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test/controllers') diff --git a/test/controllers/node_actions_controller_test.rb b/test/controllers/node_actions_controller_test.rb index 8bc68ece..cfc5a31b 100644 --- a/test/controllers/node_actions_controller_test.rb +++ b/test/controllers/node_actions_controller_test.rb @@ -48,4 +48,14 @@ class NodeActionsControllerTest < ActionController::TestCase get :index assert_response :redirect end + + test "zooming on a node finds subtree entries recorded at its ancestor" do + parent = Node.root.children.create!(:slug => "zoom_participant_parent") + child = parent.children.create!(:slug => "zoom_participant_child") + parent.trash!(users(:quentin)) + + get :index, params: { :node_id => child.id } + assert_response :success + assert_includes assigns(:actions).map(&:action), "trash" + end end -- cgit v1.3