FIX: Validation of topic params broke discourse-assign
This commit is contained in:
parent
87fa26b6c8
commit
ba0e322fd0
|
@ -23,7 +23,6 @@ class TopicQuery
|
|||
|
||||
{
|
||||
max_posts: zero_or_more,
|
||||
exclude_category_ids: array_zero_or_more,
|
||||
min_posts: zero_or_more,
|
||||
}
|
||||
end
|
||||
|
|
|
@ -17,9 +17,6 @@ RSpec.describe ListController do
|
|||
end
|
||||
|
||||
it "does not return a 500 for invalid input" do
|
||||
get "/latest?exclude_category_ids[]=bob"
|
||||
expect(response.status).to eq(400)
|
||||
|
||||
get "/latest?min_posts=bob"
|
||||
expect(response.status).to eq(400)
|
||||
|
||||
|
|
Loading…
Reference in New Issue