DEV: Dedicated route for current user notification counts (#26106)

Co-authored-by: Alan Guo Xiang Tan <gxtan1990@gmail.com>
This commit is contained in:
Penar Musaraj
2024-03-15 12:08:37 -04:00
committed by GitHub
parent ad7e3e04f3
commit 8cf2f909f5
11 changed files with 399 additions and 0 deletions

View File

@ -618,5 +618,12 @@ RSpec.describe NotificationsController do
delete_notification(403, :to)
end
end
describe "#totals" do
it "can't see notification totals" do
get "/notifications/totals.json"
expect(response.status).to eq(403)
end
end
end
end