value = CustomValue.new(:value => 'bar', :custom_field => field)
field.id = 52
- assert_equal '<input id="object_custom_field_values_52" name="object[custom_field_values][52]" type="text" value="bar" />',
+ assert_equal '<input class="foo_cf" id="object_custom_field_values_52" name="object[custom_field_values][52]" type="text" value="bar" />',
custom_field_tag('object', value)
end
field = CustomField.new(:field_format => 'foo')
field.id = 52
- assert_equal '<input id="object_custom_field_values_52" name="object[custom_field_values][52]" type="text" value="" />',
+ assert_equal '<input class="foo_cf" id="object_custom_field_values_52" name="object[custom_field_values][52]" type="text" value="" />',
custom_field_tag_for_bulk_edit('object', field)
end
end