diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-09-18 10:55:15 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-09-18 10:55:15 +0000 |
commit | 8fd263cd4ec740bda56b6f4c0d3e2ddd91f05722 (patch) | |
tree | 3bf61c55c6ef2fd2f91c9032c8a3f925280e93f9 /actionpack/test/template | |
parent | 7010ee361ec71ed1a37962897cebc8684d90aa35 (diff) | |
download | rails-8fd263cd4ec740bda56b6f4c0d3e2ddd91f05722.tar.gz rails-8fd263cd4ec740bda56b6f4c0d3e2ddd91f05722.tar.bz2 rails-8fd263cd4ec740bda56b6f4c0d3e2ddd91f05722.zip |
tag_options creates fewer objects
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7512 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/template')
-rw-r--r-- | actionpack/test/template/tag_helper_test.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/actionpack/test/template/tag_helper_test.rb b/actionpack/test/template/tag_helper_test.rb index b839d53f6b..1e8957d756 100644 --- a/actionpack/test/template/tag_helper_test.rb +++ b/actionpack/test/template/tag_helper_test.rb @@ -13,7 +13,9 @@ class TagHelperTest < Test::Unit::TestCase end def test_tag_options - assert_match /\A<p class="(show|elsewhere)" \/>\z/, tag("p", "class" => "show", :class => "elsewhere") + str = tag("p", "class" => "show", :class => "elsewhere") + assert_match /class="show"/, str + assert_match /class="elsewhere"/, str end def test_tag_options_rejects_nil_option |