Ability to group and sort the issue list by user/version custom field (#9419).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10073 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2012-07-24 17:39:30 +00:00
parent 44fcc8919d
commit faab8678d4
5 changed files with 142 additions and 6 deletions
+10
View File
@@ -202,4 +202,14 @@ class CustomFieldTest < ActiveSupport::TestCase
assert f.valid_field_value?(['value1', 'value2'])
assert !f.valid_field_value?(['value1', 'abc'])
end
def test_value_class_should_return_the_class_used_for_fields_values
assert_equal User, CustomField.new(:field_format => 'user')
assert_equal Version, CustomField.new(:field_format => 'version')
end
def test_value_class_should_return_nil_for_other_fields
assert_nil CustomField.new(:field_format => 'text')
assert_nil CustomField.new
end
end