From 89e06ed4c6191aff7769aeea8842f45df85acf89 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 16 Jun 2005 06:04:23 +0000 Subject: Fixed image_tag so an exception is not thrown just because the image is missing and alt value can't be generated #1395 [Marcel] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1434 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/test/template/asset_tag_helper_test.rb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'actionpack/test/template') diff --git a/actionpack/test/template/asset_tag_helper_test.rb b/actionpack/test/template/asset_tag_helper_test.rb index f558bc1bbc..b1aa2565b7 100644 --- a/actionpack/test/template/asset_tag_helper_test.rb +++ b/actionpack/test/template/asset_tag_helper_test.rb @@ -166,16 +166,14 @@ class AssetTagHelperNonVhostTest < Test::Unit::TestCase StyleLinkToTag.each { |method, tag| assert_equal(tag, eval(method)) } end - def test_image_tag - assert_equal %(Gold), image_tag("gold", :size => "45x70") - end - def test_image_path ImagePathToTag.each { |method, tag| assert_equal(tag, eval(method)) } end def test_image_tag ImageLinkToTag.each { |method, tag| assert_equal(tag, eval(method)) } + # Assigning a default alt tag should not cause an exception to be raised + assert_nothing_raised { image_tag('') } end -end \ No newline at end of file +end -- cgit v1.2.3