From 6896ad12fe884c197f4d3fbcb86ec77b9b705c12 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Thu, 22 Oct 2020 14:18:28 +0000 Subject: [PATCH] shorten long line of TimeEntryQueryTest git-svn-id: http://svn.redmine.org/redmine/trunk@20165 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/time_entry_query_test.rb | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/test/unit/time_entry_query_test.rb b/test/unit/time_entry_query_test.rb index aa5b4e080..5daf08b2b 100644 --- a/test/unit/time_entry_query_test.rb +++ b/test/unit/time_entry_query_test.rb @@ -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) -- 2.39.5