aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/asset_tag_helper_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/test/template/asset_tag_helper_test.rb')
-rw-r--r--actionpack/test/template/asset_tag_helper_test.rb8
1 files changed, 3 insertions, 5 deletions
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 %(<img alt="Gold" height="70" src="/calloboration/hieraki/images/gold.png" width="45" />), 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