From 69512e1a0e5adf1bcfbda7aee7d75ea2b183fb50 Mon Sep 17 00:00:00 2001 From: Carlos Antonio da Silva Date: Tue, 17 Jan 2012 22:47:28 -0200 Subject: Add test for content tag with prefix and extra html options --- actionpack/test/template/record_tag_helper_test.rb | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'actionpack') diff --git a/actionpack/test/template/record_tag_helper_test.rb b/actionpack/test/template/record_tag_helper_test.rb index ec777d15c4..247704928e 100644 --- a/actionpack/test/template/record_tag_helper_test.rb +++ b/actionpack/test/template/record_tag_helper_test.rb @@ -33,8 +33,8 @@ class RecordTagHelperTest < ActionView::TestCase end def test_content_tag_for - expected = %(
  • ) - actual = content_tag_for(:li, @post, :class => 'bar') { } + expected = %(
  • ) + actual = content_tag_for(:li, @post) { } assert_dom_equal expected, actual end @@ -44,9 +44,15 @@ class RecordTagHelperTest < ActionView::TestCase assert_dom_equal expected, actual end - def test_content_tag_for_with_extra_html_tags + def test_content_tag_for_with_extra_html_options expected = %() - actual = content_tag_for(:tr, @post, {:class => "bar", :style => "background-color: #f0f0f0"}) { } + actual = content_tag_for(:tr, @post, :class => "bar", :style => "background-color: #f0f0f0") { } + assert_dom_equal expected, actual + end + + def test_content_tag_for_with_prefix_and_extra_html_options + expected = %() + actual = content_tag_for(:tr, @post, :archived, :class => "bar", :style => "background-color: #f0f0f0") { } assert_dom_equal expected, actual end -- cgit v1.2.3