Adds css class to custom field input tags.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9608 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2012-05-01 16:50:42 +00:00
parent bebe429472
commit c085367bb6
3 changed files with 19 additions and 13 deletions
+2 -2
View File
@@ -1268,7 +1268,7 @@ class IssuesControllerTest < ActionController::TestCase
assert_template 'new'
assert_tag 'select',
:attributes => {:name => 'issue[custom_field_values][1]'},
:attributes => {:name => 'issue[custom_field_values][1]', :class => 'list_cf'},
:children => {:count => 4},
:child => {:tag => 'option', :attributes => {:value => 'MySQL'}, :content => 'MySQL'}
end
@@ -2740,7 +2740,7 @@ class IssuesControllerTest < ActionController::TestCase
assert_template 'bulk_edit'
assert_tag :select,
:attributes => {:name => "issue[custom_field_values][#{field.id}]"},
:attributes => {:name => "issue[custom_field_values][#{field.id}]", :class => 'user_cf'},
:children => {
:only => {:tag => 'option'},
:count => Project.find(1).users.count + 2 # "no change" + "none" options