Defect #27543 » 27543-remove-inherited-limitation-with-test.patch
lib/redmine/field_format.rb | ||
---|---|---|
829 | 829 |
end |
830 | 830 | |
831 | 831 |
class EnumerationFormat < RecordList |
832 |
self.customized_class_names = nil |
|
833 | ||
832 | 834 |
add 'enumeration' |
833 | 835 |
self.form_partial = 'custom_fields/formats/enumeration' |
834 | 836 |
test/unit/lib/redmine/field_format/enumeration_format_test.rb | ||
---|---|---|
100 | 100 |
assert_equal [@foo.id], @field.value_from_keyword('foo, baz', nil) |
101 | 101 |
assert_equal [], @field.value_from_keyword('baz', nil) |
102 | 102 |
end |
103 | ||
104 |
def test_customized_class_names_should_overrided_to_nil |
|
105 |
assert_nil Redmine::FieldFormat::EnumerationFormat.customized_class_names |
|
106 |
end |
|
103 | 107 |
end |