aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/asset_tag_helper_test.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-03-14 00:18:12 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-03-14 00:18:12 +0000
commit9790233dfda048f80bf5bb4ffe8b89c04723c9aa (patch)
tree715893b1fa39629e5ad710e65e55814d70dc3ce0 /actionpack/test/template/asset_tag_helper_test.rb
parent7edb10fe682d5fa9802b2b5355b1073444042fc4 (diff)
downloadrails-9790233dfda048f80bf5bb4ffe8b89c04723c9aa.tar.gz
rails-9790233dfda048f80bf5bb4ffe8b89c04723c9aa.tar.bz2
rails-9790233dfda048f80bf5bb4ffe8b89c04723c9aa.zip
Moved image_tag to AssetTagHelper
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@899 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.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/test/template/asset_tag_helper_test.rb b/actionpack/test/template/asset_tag_helper_test.rb
index d93d0967e0..896d843165 100644
--- a/actionpack/test/template/asset_tag_helper_test.rb
+++ b/actionpack/test/template/asset_tag_helper_test.rb
@@ -42,4 +42,8 @@ class AssetTagHelperTest < Test::Unit::TestCase
def test_style_link
StyleLinkToTag.each { |method, tag| assert_equal(tag, eval(method)) }
end
+
+ def test_image_tag
+ assert_equal %(<img alt="Gold" height="70" src="/images/gold.png" width="45" />), image_tag("gold", :size => "45x70")
+ end
end \ No newline at end of file