Skip to content

A platform for community discussion. Free, open, simple.

DEV: Fix chat pagination spec (#21693)

Martin Brennan6dc05dc53511
diff --git a/plugins/chat/spec/requests/chat_controller_spec.rb b/plugins/chat/spec/requests/chat_controller_spec.rb
index 318f17169d1..887b4b09409 100644
--- a/plugins/chat/spec/requests/chat_controller_spec.rb
+++ b/plugins/chat/spec/requests/chat_controller_spec.rb
@@ -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