From 4dd4621f5bb5500092e635e80e1b1cb1d888b6ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Thu, 17 May 2012 23:42:37 -0700 Subject: Merge pull request #5020 from KL-7/fix-blank-image_tag-source Render img tag with empty src if empty string is passed to image_tag. --- actionpack/test/template/asset_tag_helper_test.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'actionpack/test/template/asset_tag_helper_test.rb') diff --git a/actionpack/test/template/asset_tag_helper_test.rb b/actionpack/test/template/asset_tag_helper_test.rb index 4aa9f76f47..e3f56ffea5 100644 --- a/actionpack/test/template/asset_tag_helper_test.rb +++ b/actionpack/test/template/asset_tag_helper_test.rb @@ -164,6 +164,7 @@ class AssetTagHelperTest < ActionView::TestCase %(image_tag("//www.rubyonrails.com/images/rails.png")) => %(Rails), %(image_tag("mouse.png", :alt => nil)) => %(), %(image_tag("data:image/gif;base64,R0lGODlhAQABAID/AMDAwAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==", :alt => nil)) => %(), + %(image_tag("")) => %() } FaviconLinkToTag = { -- cgit v1.2.3