:enabled_modules,
:custom_fields, :custom_values
+ include Redmine::I18n
+
def test_filter_values_be_arrays
q = ProjectQuery.new
assert_nil q.project
end
def test_project_statuses_filter_should_return_project_statuses
+ set_language_if_valid 'en'
query = ProjectQuery.new(:name => '_')
query.filters = {'status' => {:operator => '=', :values => []}}
-
values = query.available_filters['status'][:values]
assert_equal ['active', 'closed'], values.map(&:first)
assert_equal ['1', '5'], values.map(&:second)