diff options
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/template/tag_helper_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/test/template/tag_helper_test.rb b/actionpack/test/template/tag_helper_test.rb index f5394bd483..a3acdbcfd3 100644 --- a/actionpack/test/template/tag_helper_test.rb +++ b/actionpack/test/template/tag_helper_test.rb @@ -12,6 +12,10 @@ class TagHelperTest < Test::Unit::TestCase assert_equal tag("p", "class" => "show"), tag("p", :class => "show") end + def test_tag_options + assert_equal "<p class=\"elsewhere\" />", tag("p", "class" => "show", :class => "elsewhere") + 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"), |