Permalink
Browse files

Make test_tag_options pass (closes #5600) [shugo]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4675 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 8eaf479 commit 4699c336f7fda526373218235c5067583b89c1c6 @dhh dhh committed Aug 5, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/test/template/tag_helper_test.rb
@@ -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

0 comments on commit 4699c33

Please sign in to comment.