mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 04:38:47 +08:00
DEV: Dedicated route for current user notification counts (#26106)
Co-authored-by: Alan Guo Xiang Tan <gxtan1990@gmail.com>
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user