diff options
author | Marcel Molina <marcel@vernix.org> | 2005-10-10 21:34:51 +0000 |
---|---|---|
committer | Marcel Molina <marcel@vernix.org> | 2005-10-10 21:34:51 +0000 |
commit | 064842f516513eab305cb8a3257e32164cda68cb (patch) | |
tree | 58aeca26b9a9e4ff018f0b5996ab66b45666918e /actionpack/test/template | |
parent | 0886bb391d97ec96d3028d5cac93ce2f7f8467e6 (diff) | |
download | rails-064842f516513eab305cb8a3257e32164cda68cb.tar.gz rails-064842f516513eab305cb8a3257e32164cda68cb.tar.bz2 rails-064842f516513eab305cb8a3257e32164cda68cb.zip |
Convert boolean form options form the tag_helper. Recloses #809.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2523 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/template')
-rw-r--r-- | actionpack/test/template/tag_helper_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/actionpack/test/template/tag_helper_test.rb b/actionpack/test/template/tag_helper_test.rb index 0c6783c158..5c413e8c89 100644 --- a/actionpack/test/template/tag_helper_test.rb +++ b/actionpack/test/template/tag_helper_test.rb @@ -24,6 +24,11 @@ class TagHelperTest < Test::Unit::TestCase assert_equal "<p included=\"\" />", tag("p", :included => '') end + def test_tag_options_converts_boolean_option + assert_equal '<p disabled="disabled" multiple="multiple" readonly="readonly" />', + tag("p", :disabled => true, :multiple => true, :readonly => true) + end + def test_content_tag assert_equal "<a href=\"create\">Create</a>", content_tag("a", "Create", "href" => "create") assert_equal content_tag("a", "Create", "href" => "create"), |