diff options
author | Go MAEDA <maeda@farend.jp> | 2021-02-08 06:22:34 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2021-02-08 06:22:34 +0000 |
commit | 4c0e771c3eff830fdc0d92170bb03f01f8522e54 (patch) | |
tree | e4612ff0d5671ac53b4efa0a2e4143ef6d86dd1e /test | |
parent | 17b6e61d5ba61fa7ca3a817f9008e22ac478c18b (diff) | |
download | redmine-4c0e771c3eff830fdc0d92170bb03f01f8522e54.tar.gz redmine-4c0e771c3eff830fdc0d92170bb03f01f8522e54.zip |
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
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/search_controller_test.rb | 15 |
1 files changed, 15 insertions, 0 deletions
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 |