summaryrefslogtreecommitdiff
path: root/test/models
diff options
context:
space:
mode:
Diffstat (limited to 'test/models')
-rw-r--r--test/models/helpers/node_actions_helper_test.rb10
1 files changed, 10 insertions, 0 deletions
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
104 assert_includes action_summary(e), "a/b" 104 assert_includes action_summary(e), "a/b"
105 assert_not action_details?(e) 105 assert_not action_details?(e)
106 end 106 end
107
108 test "trash, restore, and destroy render their paths" do
109 trash = entry("trash", { "path" => { "from" => "club/old", "to" => "trash/old" } })
110 restore = entry("restore_from_trash", { "path" => { "from" => "trash/old", "to" => "club/new" } })
111 doomed = entry("destroy", { "path" => "trash/old" })
112
113 assert_includes action_summary(trash), "club/old"
114 assert_includes action_summary(restore), "club/new"
115 assert_includes action_summary(doomed), "trash/old"
116 end
107end 117end