Merged r20738 from trunk to 4.1-stable (#34615).

git-svn-id: http://svn.redmine.org/redmine/branches/4.1-stable@20740 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2021-02-08 06:22:34 +00:00
parent 17b6e61d5b
commit 4c0e771c3e
2 changed files with 16 additions and 1 deletions

View File

@@ -428,4 +428,19 @@ class SearchControllerTest < Redmine::ControllerTest
assert_select 'dd span.highlight', :text => 'highlighted'
end
end
def test_search_should_exclude_empty_modules_params
@request.session[:user_id] = 1
get :index, params: {
q: "private",
scope: "all",
issues: "1",
projects: nil
}
assert_response :success
assert_select '#search-results dt.project', 0
end
end