diff options
author | Jamis Buck <jamis@37signals.com> | 2005-10-12 01:05:29 +0000 |
---|---|---|
committer | Jamis Buck <jamis@37signals.com> | 2005-10-12 01:05:29 +0000 |
commit | 8946804b8a73242ac59296782741fec2fb08e97a (patch) | |
tree | 1504c2fceaa6abd9b5ab04b03686e83ac0180bd5 /actionpack/test | |
parent | 6fe5f65d87d9fc49be3f937641da1fb225838dc7 (diff) | |
download | rails-8946804b8a73242ac59296782741fec2fb08e97a.tar.gz rails-8946804b8a73242ac59296782741fec2fb08e97a.tar.bz2 rails-8946804b8a73242ac59296782741fec2fb08e97a.zip |
Make xyz_tag(..., :id => "foo") work again
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2535 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/template/form_tag_helper_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/actionpack/test/template/form_tag_helper_test.rb b/actionpack/test/template/form_tag_helper_test.rb index 1fc84744e8..546d3e6772 100644 --- a/actionpack/test/template/form_tag_helper_test.rb +++ b/actionpack/test/template/form_tag_helper_test.rb @@ -87,5 +87,11 @@ class FormTagHelperTest < Test::Unit::TestCase assert_dom_equal %(<select id="people" multiple="multiple" name="people"><option>david</option></select>), select_tag("people", "<option>david</option>", :multiple => true) assert_dom_equal %(<select id="people" name="people"><option>david</option></select>), select_tag("people", "<option>david</option>", :multiple => nil) end + + def test_stringify_symbol_keys + actual = text_field_tag "title", "Hello!", :id => "admin" + expected = %(<input id="admin" name="title" type="text" value="Hello!" />) + assert_dom_equal expected, actual + end end |