diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-02-14 20:37:17 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-02-14 20:37:17 +0000 |
commit | 0be82ea2c45eb2d95e5cde32365dea8a5b333123 (patch) | |
tree | 32ddf23e177c988959f2a8a1797356ac46f4592f /test/unit/query_test.rb | |
parent | f77edce621c6841c507ed3925ce04d01f2ad986b (diff) | |
download | redmine-0be82ea2c45eb2d95e5cde32365dea8a5b333123.tar.gz redmine-0be82ea2c45eb2d95e5cde32365dea8a5b333123.zip |
Refactor: use an ordered hash to store available filters and remove :order option (#13154).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11372 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/query_test.rb')
-rw-r--r-- | test/unit/query_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/unit/query_test.rb b/test/unit/query_test.rb index dfc291d7e..0ee76a477 100644 --- a/test/unit/query_test.rb +++ b/test/unit/query_test.rb @@ -28,6 +28,11 @@ class QueryTest < ActiveSupport::TestCase :projects_trackers, :custom_fields_trackers + def test_available_filters_should_be_ordered + query = IssueQuery.new + assert_equal 0, query.available_filters.keys.index('status_id') + end + def test_custom_fields_for_all_projects_should_be_available_in_global_queries query = IssueQuery.new(:project => nil, :name => '_') assert query.available_filters.has_key?('cf_1') |