aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/asset_tag_helper_test.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2012-05-17 23:42:37 -0700
committerRafael Mendonça França <rafaelmfranca@gmail.com>2012-05-18 18:26:18 -0300
commit4dd4621f5bb5500092e635e80e1b1cb1d888b6ec (patch)
tree636e0a89b328bf4403d3b7aef7d5e4ea98619490 /actionpack/test/template/asset_tag_helper_test.rb
parent8ad8f61b3f20af106798731144487de40facb25c (diff)
downloadrails-4dd4621f5bb5500092e635e80e1b1cb1d888b6ec.tar.gz
rails-4dd4621f5bb5500092e635e80e1b1cb1d888b6ec.tar.bz2
rails-4dd4621f5bb5500092e635e80e1b1cb1d888b6ec.zip
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.
Diffstat (limited to 'actionpack/test/template/asset_tag_helper_test.rb')
-rw-r--r--actionpack/test/template/asset_tag_helper_test.rb1
1 files changed, 1 insertions, 0 deletions
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")) => %(<img alt="Rails" src="//www.rubyonrails.com/images/rails.png" />),
%(image_tag("mouse.png", :alt => nil)) => %(<img src="/images/mouse.png" />),
%(image_tag("data:image/gif;base64,R0lGODlhAQABAID/AMDAwAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==", :alt => nil)) => %(<img src="data:image/gif;base64,R0lGODlhAQABAID/AMDAwAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" />),
+ %(image_tag("")) => %(<img src="" />)
}
FaviconLinkToTag = {