add validation to exclude_category_ids

This commit is contained in:
Sam
2018-08-15 09:53:28 +10:00
parent 12bab65167
commit bc47148d35
2 changed files with 9 additions and 2 deletions

View File

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