aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/tag_helper_test.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-06-16 05:04:17 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-06-16 05:04:17 +0000
commitcc6c48f0a8df33d706180bb22e1f39044b1dcbef (patch)
tree706a0b5f230cc20c3329323506848f70e582c7d1 /actionpack/test/template/tag_helper_test.rb
parent7bb486055e62b33547101a10d2505564ff1d004f (diff)
downloadrails-cc6c48f0a8df33d706180bb22e1f39044b1dcbef.tar.gz
rails-cc6c48f0a8df33d706180bb22e1f39044b1dcbef.tar.bz2
rails-cc6c48f0a8df33d706180bb22e1f39044b1dcbef.zip
Fixed TagHelper such that :name and 'name' keys in the options doesn't result in two attributes #1455 [take_tk]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1426 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/template/tag_helper_test.rb')
-rw-r--r--actionpack/test/template/tag_helper_test.rb4
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"),