From 744ceaf61f5b3fc2065df0d7f0c42390236dc5b9 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 20 Dec 2014 14:41:04 +0000 Subject: [PATCH] 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 --- test/unit/helpers/custom_fields_helper_test.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/unit/helpers/custom_fields_helper_test.rb b/test/unit/helpers/custom_fields_helper_test.rb index 0ca409364..725d780a0 100644 --- a/test/unit/helpers/custom_fields_helper_test.rb +++ b/test/unit/helpers/custom_fields_helper_test.rb @@ -46,15 +46,15 @@ class CustomFieldsHelperTest < ActionView::TestCase value = CustomValue.new(:value => 'bar', :custom_field => field) field.id = 52 - assert_equal '', - 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 '', - 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 -- 2.39.5