]> source.dussan.org Git - redmine.git/commitdiff
shorten long line of TimeEntryQueryTest
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 22 Oct 2020 14:18:28 +0000 (14:18 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 22 Oct 2020 14:18:28 +0000 (14:18 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20165 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/time_entry_query_test.rb

index aa5b4e08062ffde97ce34266b0ba12382ae8f225..5daf08b2b310dad95a490b6b3196bf7af20d6ff4 100644 (file)
@@ -88,9 +88,12 @@ class TimeEntryQueryTest < ActiveSupport::TestCase
 
   def test_project_query_should_include_project_issue_custom_fields_only_as_filters
     global = IssueCustomField.generate!(:is_for_all => true, :is_filter => true)
-    field_on_project = IssueCustomField.generate!(:is_for_all => false, :project_ids => [3], :is_filter => true)
-    field_not_on_project = IssueCustomField.generate!(:is_for_all => false, :project_ids => [1,2], :is_filter => true)
-
+    field_on_project =
+      IssueCustomField.generate!(:is_for_all => false, :project_ids => [3],
+                                 :is_filter => true)
+    field_not_on_project =
+      IssueCustomField.generate!(:is_for_all => false, :project_ids => [1, 2],
+                                 :is_filter => true)
     query = TimeEntryQuery.new(:project => Project.find(3))
 
     assert_include "issue.cf_#{global.id}", query.available_filters.keys
@@ -100,9 +103,12 @@ class TimeEntryQueryTest < ActiveSupport::TestCase
 
   def test_project_query_should_include_project_issue_custom_fields_only_as_columns
     global = IssueCustomField.generate!(:is_for_all => true, :is_filter => true)
-    field_on_project = IssueCustomField.generate!(:is_for_all => false, :project_ids => [3], :is_filter => true)
-    field_not_on_project = IssueCustomField.generate!(:is_for_all => false, :project_ids => [1,2], :is_filter => true)
-
+    field_on_project =
+      IssueCustomField.generate!(:is_for_all => false, :project_ids => [3],
+                                 :is_filter => true)
+    field_not_on_project =
+      IssueCustomField.generate!(:is_for_all => false, :project_ids => [1, 2],
+                                 :is_filter => true)
     query = TimeEntryQuery.new(:project => Project.find(3))
 
     assert_include "issue.cf_#{global.id}", query.available_columns.map(&:name).map(&:to_s)