diff options
Diffstat (limited to 'actionpack/test/template/form_tag_helper_test.rb')
-rw-r--r-- | actionpack/test/template/form_tag_helper_test.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/actionpack/test/template/form_tag_helper_test.rb b/actionpack/test/template/form_tag_helper_test.rb index 6036dd4b50..8fd6300b82 100644 --- a/actionpack/test/template/form_tag_helper_test.rb +++ b/actionpack/test/template/form_tag_helper_test.rb @@ -11,12 +11,13 @@ class FormTagHelperTest < Test::Unit::TestCase %(hidden_field_tag "id", 3) => %(<input id="id" name="id" type="hidden" value="3" />), %(password_field_tag) => %(<input id="password" name="password" type="password" value="" />), %(text_area_tag("body", "hello world", :size => "20x40")) => %(<textarea cols="20" id="body" name="body" rows="40">hello world</textarea>), + %(text_area_tag("body", "hello world", "size" => "20x40")) => %(<textarea cols="20" id="body" name="body" rows="40">hello world</textarea>), %(check_box_tag("admin")) => %(<input id="admin" name="admin" type="checkbox" value="1" />), %(radio_button_tag("people", "david")) => %(<input id="people" name="people" type="radio" value="david" />), %(select_tag("people", "<option>david</option>")) => %(<select id="people" name="people"><option>david</option></select>), } def test_tags - MethodToTag.each { |method, tag| assert_equal(eval(method), tag) } + MethodToTag.each { |method, tag| assert_equal(tag, eval(method)) } end -end
\ No newline at end of file +end |