aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2012-09-25 09:55:43 -0700
committerRafael Mendonça França <rafaelmfranca@gmail.com>2012-09-25 09:55:43 -0700
commit9fec0c8d3522c6b027dbe2df70c49953b2d9bbaa (patch)
treeffd905956e95ea62d118ea0915bed0bcbce828d9 /actionpack/test
parentc96b20f8d985c6fa87a8efda7a4884e3c35e5739 (diff)
parent3164b0a2c1e6b000d933263716f2e3f2ff1cca52 (diff)
downloadrails-9fec0c8d3522c6b027dbe2df70c49953b2d9bbaa.tar.gz
rails-9fec0c8d3522c6b027dbe2df70c49953b2d9bbaa.tar.bz2
rails-9fec0c8d3522c6b027dbe2df70c49953b2d9bbaa.zip
Merge pull request #7754 from NARKOZ/image_tag-size
Feature: set the same width and height for image if size attribute is a number
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/template/asset_tag_helper_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/template/asset_tag_helper_test.rb b/actionpack/test/template/asset_tag_helper_test.rb
index 25d85c47c7..a04694714d 100644
--- a/actionpack/test/template/asset_tag_helper_test.rb
+++ b/actionpack/test/template/asset_tag_helper_test.rb
@@ -192,9 +192,9 @@ class AssetTagHelperTest < ActionView::TestCase
ImageLinkToTag = {
%(image_tag("xml.png")) => %(<img alt="Xml" src="/images/xml.png" />),
%(image_tag("rss.gif", :alt => "rss syndication")) => %(<img alt="rss syndication" src="/images/rss.gif" />),
+ %(image_tag("gold.png", :size => "20")) => %(<img alt="Gold" height="20" src="/images/gold.png" width="20" />),
%(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" />),
- %(image_tag("error.png", "size" => "45")) => %(<img alt="Error" src="/images/error.png" />),
%(image_tag("error.png", "size" => "45 x 70")) => %(<img alt="Error" src="/images/error.png" />),
%(image_tag("error.png", "size" => "x")) => %(<img alt="Error" src="/images/error.png" />),
%(image_tag("google.com.png")) => %(<img alt="Google.com" src="/images/google.com.png" />),