Make test_tag_options pass (closes #5600) [shugo]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4675 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson 2006-08-05 21:38:03 +00:00
parent 8eaf479156
commit 4699c336f7

@ -13,7 +13,7 @@ def test_tag
end
def test_tag_options
assert_equal "<p class=\"elsewhere\" />", tag("p", "class" => "show", :class => "elsewhere")
assert_match /\A<p class="(show|elsewhere)" \/>\z/, tag("p", "class" => "show", :class => "elsewhere")
end
def test_tag_options_rejects_nil_option