mirror of
https://github.com/discourse/discourse.git
synced 2025-06-02 01:58:05 +08:00
add validation to exclude_category_ids
This commit is contained in:
@ -22,6 +22,12 @@ RSpec.describe ListController do
|
||||
|
||||
get "/latest?max_posts=bob"
|
||||
expect(response.status).to eq(400)
|
||||
|
||||
get "/latest?exclude_category_ids=bob"
|
||||
expect(response.status).to eq(400)
|
||||
|
||||
get "/latest?exclude_category_ids[]=bob"
|
||||
expect(response.status).to eq(400)
|
||||
end
|
||||
|
||||
it "doesn't throw an error with page params as an array" do
|
||||
|
Reference in New Issue
Block a user