mirror of
https://github.com/meineerde/redmine.git
synced 2026-02-06 09:03:25 +00:00
Use DOM assertions as attributes order changes from a Rails version to another.
git-svn-id: http://svn.redmine.org/redmine/trunk@13778 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
b1d2312dbf
commit
744ceaf61f
@ -46,15 +46,15 @@ class CustomFieldsHelperTest < ActionView::TestCase
|
||||
value = CustomValue.new(:value => 'bar', :custom_field => field)
|
||||
field.id = 52
|
||||
|
||||
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)
|
||||
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_include '<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)
|
||||
assert_select_in custom_field_tag_for_bulk_edit('object', field),
|
||||
'input[type=text][value=""][name=?]', 'object[custom_field_values][52]'
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user