summaryrefslogtreecommitdiffstats
path: root/test/unit/time_entry_query_test.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2018-04-01 00:29:22 +0000
committerGo MAEDA <maeda@farend.jp>2018-04-01 00:29:22 +0000
commitfa76ec5c0196a309d541edcc5fda6022e19aefe2 (patch)
tree2c5998add4166fffd3d91439683d6702aaf0d8e3 /test/unit/time_entry_query_test.rb
parent07ce80f9b29b5878ddffe7a19bb167cb05dca463 (diff)
downloadredmine-fa76ec5c0196a309d541edcc5fda6022e19aefe2.tar.gz
redmine-fa76ec5c0196a309d541edcc5fda6022e19aefe2.zip
Adds issue category filter to spent time queries (#28391).
Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@17249 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/time_entry_query_test.rb')
-rw-r--r--test/unit/time_entry_query_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/unit/time_entry_query_test.rb b/test/unit/time_entry_query_test.rb
index e00e33845..637f884f4 100644
--- a/test/unit/time_entry_query_test.rb
+++ b/test/unit/time_entry_query_test.rb
@@ -102,4 +102,9 @@ class TimeEntryQueryTest < ActiveSupport::TestCase
assert_include "issue.cf_#{field_on_project.id}", query.available_columns.map(&:name).map(&:to_s)
assert_not_include "issue.cf_#{field_not_on_project.id}", query.available_columns.map(&:name).map(&:to_s)
end
+
+ def test_issue_category_filter_should_not_be_available_in_global_queries
+ query = TimeEntryQuery.new(:project => nil, :name => '_')
+ assert !query.available_filters.has_key?('issue.category_id')
+ end
end