From 9790233dfda048f80bf5bb4ffe8b89c04723c9aa Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 14 Mar 2005 00:18:12 +0000 Subject: Moved image_tag to AssetTagHelper git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@899 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/test/template/asset_tag_helper_test.rb | 4 ++++ actionpack/test/template/tag_helper_test.rb | 4 ---- actionpack/test/template/url_helper_test.rb | 2 ++ 3 files changed, 6 insertions(+), 4 deletions(-) (limited to 'actionpack/test/template') 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 %(Gold), image_tag("gold", :size => "45x70") + end end \ No newline at end of file diff --git a/actionpack/test/template/tag_helper_test.rb b/actionpack/test/template/tag_helper_test.rb index cf3dabd522..f5394bd483 100644 --- a/actionpack/test/template/tag_helper_test.rb +++ b/actionpack/test/template/tag_helper_test.rb @@ -17,8 +17,4 @@ class TagHelperTest < Test::Unit::TestCase assert_equal content_tag("a", "Create", "href" => "create"), content_tag("a", "Create", :href => "create") end - - def test_image_tag - assert_equal %(Gold), image_tag("gold", :size => "45x70") - end end diff --git a/actionpack/test/template/url_helper_test.rb b/actionpack/test/template/url_helper_test.rb index 828af7bb14..8e0016f0fd 100644 --- a/actionpack/test/template/url_helper_test.rb +++ b/actionpack/test/template/url_helper_test.rb @@ -1,11 +1,13 @@ require File.dirname(__FILE__) + '/../abstract_unit' require File.dirname(__FILE__) + '/../../lib/action_view/helpers/url_helper' +require File.dirname(__FILE__) + '/../../lib/action_view/helpers/asset_tag_helper' require File.dirname(__FILE__) + '/../../lib/action_view/helpers/tag_helper' RequestMock = Struct.new("Request", :request_uri) class UrlHelperTest < Test::Unit::TestCase + include ActionView::Helpers::AssetTagHelper include ActionView::Helpers::UrlHelper include ActionView::Helpers::TagHelper -- cgit v1.2.3