mirror of
https://github.com/discourse/discourse.git
synced 2025-03-21 05:55:41 +08:00
DEV: Fix chat pagination spec (#21693)
This commit is contained in:
parent
3fed1abf2f
commit
6dc05dc535
@ -46,8 +46,8 @@ RSpec.describe Chat::ChatController do
|
||||
expect(response.status).to eq(403)
|
||||
end
|
||||
|
||||
it "errors when page size is over 50" do
|
||||
get "/chat/#{chat_channel.id}/messages.json", params: { page_size: 51 }
|
||||
it "errors when page size is over 100" do
|
||||
get "/chat/#{chat_channel.id}/messages.json", params: { page_size: 200 }
|
||||
expect(response.status).to eq(400)
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user