diff options
Diffstat (limited to 'test/controllers/node_actions_controller_test.rb')
| -rw-r--r-- | test/controllers/node_actions_controller_test.rb | 10 |
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 8bc68ec..cfc5a31 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 | ||
| 51 | end | 61 | end |
