summaryrefslogtreecommitdiff
path: root/test/models/node_trash_test.rb
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-07-27 02:53:21 +0200
committererdgeist <erdgeist@erdgeist.org>2026-07-27 02:53:21 +0200
commit180b5feba092db1339f7bb3217e91f0b22239bc5 (patch)
treeed2912eb568639d027e2d54bc4f28c7a9406f7e0 /test/models/node_trash_test.rb
parent102c33264fd1463cd88aa8245413e7b331dd9632 (diff)
Surface held locks in the dashboard's work-in-progress widget
A lock with no draft or autosave behind it was invisible to everyone including its holder, until the next editor collided with it. work_in_progress now admits those nodes, and the widget names the holder rather than the last editor on any locked row. Also flips the ordering to stalest-first, so a backlog reads as a queue rather than a feed, and gives the heading a real total: the count came from the already-limited relation and could never exceed five.
Diffstat (limited to 'test/models/node_trash_test.rb')
-rw-r--r--test/models/node_trash_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/models/node_trash_test.rb b/test/models/node_trash_test.rb
index 52069d75..3947f20e 100644
--- a/test/models/node_trash_test.rb
+++ b/test/models/node_trash_test.rb
@@ -161,7 +161,7 @@ class NodeTrashTest < ActiveSupport::TestCase
161 node = create_node_with_published_page 161 node = create_node_with_published_page
162 node.trash!(@user1) 162 node.trash!(@user1)
163 163
164 ids = Node.drafts_and_autosaves.pluck(:id) 164 ids = Node.work_in_progress.pluck(:id)
165 assert_not_includes ids, Node.trash.id 165 assert_not_includes ids, Node.trash.id
166 assert_not_includes ids, node.id 166 assert_not_includes ids, node.id
167 end 167 end