Use one controller for all notification readings

This commit is contained in:
David Heinemeier Hansson
2025-04-15 19:14:50 +02:00
parent 2ea898324f
commit 73f272f132
9 changed files with 30 additions and 51 deletions
@@ -8,7 +8,7 @@ class Notifications::MarkAllReadsControllerTest < ActionDispatch::IntegrationTes
test "show" do
assert_changes -> { notifications(:logo_published_kevin).reload.read? }, from: false, to: true do
assert_changes -> { notifications(:layout_commented_kevin).reload.read? }, from: false, to: true do
post notifications_mark_all_read_path
post read_all_notifications_path
end
end