From 4c0e771c3eff830fdc0d92170bb03f01f8522e54 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Mon, 8 Feb 2021 06:22:34 +0000 Subject: 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 --- test/functional/search_controller_test.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'test') diff --git a/test/functional/search_controller_test.rb b/test/functional/search_controller_test.rb index 77286ed42..e1cb1ae5d 100644 --- a/test/functional/search_controller_test.rb +++ b/test/functional/search_controller_test.rb @@ -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 -- cgit v1.2.3