diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-06-22 15:35:11 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-06-22 15:35:11 +0000 |
commit | 0d5b03bab7338da4a5c456f21d18dd09308e0d8a (patch) | |
tree | 7ad69dd36856a69db0a3fe84f251f0687674e0c1 /test/unit/query_test.rb | |
parent | b025b63111089a5048f4fef5af30c98c0de26b8a (diff) | |
download | redmine-0d5b03bab7338da4a5c456f21d18dd09308e0d8a.tar.gz redmine-0d5b03bab7338da4a5c456f21d18dd09308e0d8a.zip |
Add filters on cross-project issue list for custom fields marked as 'For all projects'.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1576 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/query_test.rb')
-rw-r--r-- | test/unit/query_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/unit/query_test.rb b/test/unit/query_test.rb index 147bfbea3..3f77cd835 100644 --- a/test/unit/query_test.rb +++ b/test/unit/query_test.rb @@ -20,6 +20,12 @@ require File.dirname(__FILE__) + '/../test_helper' class QueryTest < Test::Unit::TestCase fixtures :projects, :users, :members, :roles, :trackers, :issue_statuses, :issue_categories, :enumerations, :issues, :custom_fields, :custom_values, :queries + def test_custom_fields_for_all_projects_should_be_available_in_global_queries + query = Query.new(:project => nil, :name => '_') + assert query.available_filters.has_key?('cf_1') + assert !query.available_filters.has_key?('cf_3') + end + def test_query_with_multiple_custom_fields query = Query.find(1) assert query.valid? |