mirror of
https://github.com/redmine/redmine.git
synced 2026-07-12 23:33:04 +02:00
fix random test failure of ProjectQueryTest (#29482)
git-svn-id: http://svn.redmine.org/redmine/trunk@18827 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -27,6 +27,8 @@ class ProjectQueryTest < ActiveSupport::TestCase
|
||||
:enabled_modules,
|
||||
:custom_fields, :custom_values
|
||||
|
||||
include Redmine::I18n
|
||||
|
||||
def test_filter_values_be_arrays
|
||||
q = ProjectQuery.new
|
||||
assert_nil q.project
|
||||
@@ -39,9 +41,9 @@ class ProjectQueryTest < ActiveSupport::TestCase
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user