diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2019-10-19 11:43:23 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2019-10-19 11:43:23 +0000 |
commit | 95188f26c3f47f110c6d928e5df0b108802032b3 (patch) | |
tree | 87c6eb46833289a4d8cfbe921060b34c75393949 /test/functional/projects_controller_test.rb | |
parent | 45f039187df03e8925cb0d08ccc1838c9ea2d5c2 (diff) | |
download | redmine-95188f26c3f47f110c6d928e5df0b108802032b3.tar.gz redmine-95188f26c3f47f110c6d928e5df0b108802032b3.zip |
Set default columns for the projects list (#29482).
Patch by Marius BALTEANU.
git-svn-id: http://svn.redmine.org/redmine/trunk@18766 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/projects_controller_test.rb')
-rw-r--r-- | test/functional/projects_controller_test.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/functional/projects_controller_test.rb b/test/functional/projects_controller_test.rb index 5e1efd240..0997ef83c 100644 --- a/test/functional/projects_controller_test.rb +++ b/test/functional/projects_controller_test.rb @@ -147,6 +147,16 @@ class ProjectsControllerTest < Redmine::ControllerTest assert_include 'idnt-2', child_level2 end + def test_index_with_default_query_setting + with_settings :project_list_defaults => {'column_names' => %w(name short_description status)} do + get :index, :params => { + :display_type => 'list' + } + assert_response :success + end + assert_equal ['Name', 'Description', 'Status'], columns_in_list + end + def test_autocomplete_js get :autocomplete, :params => { :format => 'js', |