summaryrefslogtreecommitdiff
path: root/test/controllers
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-07-23 03:58:14 +0200
committererdgeist <erdgeist@erdgeist.org>2026-07-23 03:58:14 +0200
commit49a80c2f48531edc2a2719d77d3c5a8c111289dd (patch)
treec09f4451049479b41c47221953ff4b62da3501f7 /test/controllers
parent52cd07b6ff191efd25938b173b7eb14411fec3e4 (diff)
Convert the log's node zoom to participants, completing subtree histories
Diffstat (limited to 'test/controllers')
-rw-r--r--test/controllers/node_actions_controller_test.rb10
1 files changed, 10 insertions, 0 deletions
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
48 get :index 48 get :index
49 assert_response :redirect 49 assert_response :redirect
50 end 50 end
51
52 test "zooming on a node finds subtree entries recorded at its ancestor" do
53 parent = Node.root.children.create!(:slug => "zoom_participant_parent")
54 child = parent.children.create!(:slug => "zoom_participant_child")
55 parent.trash!(users(:quentin))
56
57 get :index, params: { :node_id => child.id }
58 assert_response :success
59 assert_includes assigns(:actions).map(&:action), "trash"
60 end
51end 61end