aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/tag_helper_test.rb
diff options
context:
space:
mode:
authorRick Olson <technoweenie@gmail.com>2007-01-05 20:32:03 +0000
committerRick Olson <technoweenie@gmail.com>2007-01-05 20:32:03 +0000
commit730c8e8391310330a175454cc73066979ee8b04c (patch)
tree45ab3219e26df44298b6ea1565ee3c807a27238f /actionpack/test/template/tag_helper_test.rb
parent1400e7f864efa25ab8dc98930ace8a6e40414461 (diff)
downloadrails-730c8e8391310330a175454cc73066979ee8b04c.tar.gz
rails-730c8e8391310330a175454cc73066979ee8b04c.tar.bz2
rails-730c8e8391310330a175454cc73066979ee8b04c.zip
Clean up multiple calls to #stringify_keys in TagHelper, add better documentation and testing for TagHelper. Closes #6394 [Bob Silva]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5857 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/template/tag_helper_test.rb')
-rw-r--r--actionpack/test/template/tag_helper_test.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/actionpack/test/template/tag_helper_test.rb b/actionpack/test/template/tag_helper_test.rb
index 0ebdf009c7..23992ee630 100644
--- a/actionpack/test/template/tag_helper_test.rb
+++ b/actionpack/test/template/tag_helper_test.rb
@@ -7,8 +7,9 @@ class TagHelperTest < Test::Unit::TestCase
include ActionView::Helpers::CaptureHelper
def test_tag
- assert_equal "<p class=\"show\" />", tag("p", "class" => "show")
- assert_equal tag("p", "class" => "show"), tag("p", :class => "show")
+ assert_equal "<br />", tag("br")
+ assert_equal "<br clear=\"left\" />", tag(:br, :clear => "left")
+ assert_equal "<br>", tag("br", nil, true)
end
def test_tag_options