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
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)