mirror of
https://github.com/discourse/discourse.git
synced 2026-08-11 05:25:16 -05:00
DEV: raise error if search term length is less than required
This commit is contained in:
@@ -127,6 +127,11 @@ describe SearchController do
|
||||
end
|
||||
|
||||
context "#show" do
|
||||
it "raises an error when the search term length is less than required" do
|
||||
get "/search.json", params: { q: 'ba' }
|
||||
expect(response.status).to eq(400)
|
||||
end
|
||||
|
||||
it "logs the search term" do
|
||||
SiteSetting.log_search_queries = true
|
||||
get "/search.json", params: { q: 'bantha' }
|
||||
|
||||
Reference in New Issue
Block a user