diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-05-19 18:06:12 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-05-19 18:06:12 +0000 |
commit | 473e5bde747d227d47d00e9b5f52b668b29f53df (patch) | |
tree | 74feb0c5e571e1e4813e97a9bb6ffd23fc60102a /actionpack/test | |
parent | 202d5c0751ac9efde2235102fb2099f4cbe93fd6 (diff) | |
download | rails-473e5bde747d227d47d00e9b5f52b668b29f53df.tar.gz rails-473e5bde747d227d47d00e9b5f52b668b29f53df.tar.bz2 rails-473e5bde747d227d47d00e9b5f52b668b29f53df.zip |
Fixed that compute_public_path should recognize external URLs, so image_tag("http://www.example.com/images/icon.gif") is not prefixed with the relative url path #1254 [victor-ronr-trac@carotena.net]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1321 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/template/asset_tag_helper_test.rb | 1 |
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 9ceec5b040..f558bc1bbc 100644 --- a/actionpack/test/template/asset_tag_helper_test.rb +++ b/actionpack/test/template/asset_tag_helper_test.rb @@ -143,6 +143,7 @@ class AssetTagHelperNonVhostTest < Test::Unit::TestCase %(image_tag("xml")) => %(<img alt="Xml" src="/calloboration/hieraki/images/xml.png" />), %(image_tag("rss", :alt => "rss syndication")) => %(<img alt="rss syndication" src="/calloboration/hieraki/images/rss.png" />), %(image_tag("gold", :size => "45x70")) => %(<img alt="Gold" height="70" src="/calloboration/hieraki/images/gold.png" width="45" />), + %(image_tag("http://www.example.com/images/icon.gif")) => %(<img alt="Icon" src="http://www.example.com/images/icon.gif" />), } def test_auto_discovery |