DEV - Test for an integer padded with spaces (#11111)
This commit is contained in:
parent
24d1b1f159
commit
d85fc96193
|
@ -345,6 +345,11 @@ describe SearchController do
|
|||
expect(response.status).to eq(400)
|
||||
end
|
||||
|
||||
it "returns a 400 error if the page parameter is padded with spaces" do
|
||||
get "/search.json", params: { q: 'kittens', page: ' 3 ' }
|
||||
expect(response.status).to eq(400)
|
||||
end
|
||||
|
||||
it "logs the search term" do
|
||||
SiteSetting.log_search_queries = true
|
||||
get "/search.json", params: { q: 'bantha' }
|
||||
|
|
Loading…
Reference in New Issue