DEV: Fix chat pagination spec (#21693)

This commit is contained in:
Martin Brennan 2023-05-23 12:47:43 +02:00 committed by GitHub
parent 3fed1abf2f
commit 6dc05dc535
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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