]> source.dussan.org Git - redmine.git/commitdiff
Updated test for r9608.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 1 May 2012 18:01:21 +0000 (18:01 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 1 May 2012 18:01:21 +0000 (18:01 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9609 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/helpers/custom_fields_helper_test.rb

index f353c2aa935f03024b9b6ba48e8456d41dad5f3f..1965874b8f67a47ddbaf3f1d746436a388250c3f 100644 (file)
@@ -33,7 +33,7 @@ class CustomFieldsHelperTest < ActionView::TestCase
     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
 
@@ -41,7 +41,7 @@ class CustomFieldsHelperTest < ActionView::TestCase
     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