aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/asset_tag_helper_test.rb
diff options
context:
space:
mode:
authorMichael Koziarski <michael@koziarski.com>2008-01-25 04:13:50 +0000
committerMichael Koziarski <michael@koziarski.com>2008-01-25 04:13:50 +0000
commit9f1fdcc27d689fc5feb07a6f197856a710383319 (patch)
tree3315a8a70589bfa4b1a9f0c19f6b93f909a5b089 /actionpack/test/template/asset_tag_helper_test.rb
parent2168178bdbb14f1b8a97f22a3eb78dd533c9cb34 (diff)
downloadrails-9f1fdcc27d689fc5feb07a6f197856a710383319.tar.gz
rails-9f1fdcc27d689fc5feb07a6f197856a710383319.tar.bz2
rails-9f1fdcc27d689fc5feb07a6f197856a710383319.zip
Handle corner case with image_tag when passed 'messed up' image names. Closes #9018 [duncanbeevers, mpalmer]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8717 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
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 37392b9f67..3b614ad2a0 100644
--- a/actionpack/test/template/asset_tag_helper_test.rb
+++ b/actionpack/test/template/asset_tag_helper_test.rb
@@ -131,6 +131,7 @@ class AssetTagHelperTest < Test::Unit::TestCase
ImageLinkToTag = {
%(image_tag("xml.png")) => %(<img alt="Xml" src="/images/xml.png" />),
+ %(image_tag("..jpg")) => %(<img alt="" src="/images/..jpg" />),
%(image_tag("rss.gif", :alt => "rss syndication")) => %(<img alt="rss syndication" src="/images/rss.gif" />),
%(image_tag("gold.png", :size => "45x70")) => %(<img alt="Gold" height="70" src="/images/gold.png" width="45" />),
%(image_tag("gold.png", "size" => "45x70")) => %(<img alt="Gold" height="70" src="/images/gold.png" width="45" />),