mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 07:11:34 +08:00
DEV: remove user thread count route (#25385)
Removes a now redundant route for the user thread count.
This commit is contained in:
@ -29,24 +29,4 @@ describe Chat::Api::CurrentUserThreadsController do
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
describe "#thread_count" do
|
||||
describe "success" do
|
||||
it "works" do
|
||||
get "/chat/api/me/threads/count"
|
||||
|
||||
expect(response.status).to eq(200)
|
||||
expect(response.parsed_body["thread_count"]).to eq(0)
|
||||
end
|
||||
end
|
||||
|
||||
context "when threads are not found" do
|
||||
it "returns a 200 when there are no threads" do
|
||||
get "/chat/api/me/threads/count"
|
||||
|
||||
expect(response.status).to eq(200)
|
||||
expect(response.parsed_body["thread_count"]).to eq(0)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user