field = CustomField.new(:field_format => 'foo')
value = CustomValue.new(:value => 'bar', :custom_field => field)
field.id = 52
-
- assert_select_in custom_field_tag('object', value),
- 'input[type=text][value=bar][name=?]', 'object[custom_field_values][52]'
+ assert_select_in(
+ custom_field_tag('object', value),
+ 'input[type=text][value=bar][name=?]', 'object[custom_field_values][52]')
end
def test_unknow_field_format_should_be_bulk_edited_as_string
field = CustomField.new(:field_format => 'foo')
field.id = 52
-
- assert_select_in custom_field_tag_for_bulk_edit('object', field),
- 'input[type=text][value=""][name=?]', 'object[custom_field_values][52]'
+ assert_select_in(
+ custom_field_tag_for_bulk_edit('object', field),
+ 'input[type=text][value=""][name=?]', 'object[custom_field_values][52]')
end
def test_custom_field_tag_class_should_contain_wiki_edit_for_custom_fields_with_full_text_formatting