summaryrefslogtreecommitdiffstats
path: root/test/unit/project_query_test.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2020-02-11 01:10:48 +0000
committerGo MAEDA <maeda@farend.jp>2020-02-11 01:10:48 +0000
commitb6d26dc1700c485183351af52e275da4b1a759f8 (patch)
treeac6ab0b13275c13871f82629837e63837df96e88 /test/unit/project_query_test.rb
parent8586bc4bf38e45b9254eca3b31c88c030aa60e64 (diff)
downloadredmine-b6d26dc1700c485183351af52e275da4b1a759f8.tar.gz
redmine-b6d26dc1700c485183351af52e275da4b1a759f8.zip
Add system setting for default results display format of project query (#32818).
Patch by Takenori TAKAKI and Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@19505 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/project_query_test.rb')
-rw-r--r--test/unit/project_query_test.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/unit/project_query_test.rb b/test/unit/project_query_test.rb
index a680fb699..d441c24d6 100644
--- a/test/unit/project_query_test.rb
+++ b/test/unit/project_query_test.rb
@@ -60,4 +60,13 @@ class ProjectQueryTest < ActiveSupport::TestCase
query = ProjectQuery.new
assert_include :cf_3, query.available_columns.map(&:name)
end
+
+ def test_display_type_default_should_equal_with_setting_project_list_display_type
+ ProjectQuery.new.available_display_types.each do |t|
+ with_settings :project_list_display_type => t do
+ q = ProjectQuery.new
+ assert_equal t, q.display_type
+ end
+ end
+ end
end