From b8553274439d34568a4c16031ed86ac6d111681d Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Mon, 26 Sep 2011 11:20:30 -0300 Subject: image_tag should use /assets if asset pipelining is turned on. Closes #3126 --- actionpack/test/template/sprockets_helper_test.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'actionpack/test') diff --git a/actionpack/test/template/sprockets_helper_test.rb b/actionpack/test/template/sprockets_helper_test.rb index a44a16750f..cac6adaaa4 100644 --- a/actionpack/test/template/sprockets_helper_test.rb +++ b/actionpack/test/template/sprockets_helper_test.rb @@ -122,6 +122,10 @@ class SprocketsHelperTest < ActionView::TestCase end end + test "image_tag" do + assert_dom_equal 'Xml', image_tag("xml.png") + end + test "stylesheets served without a controller in do not use asset hosts when the default protocol is :request" do @controller = nil @config.action_controller.asset_host = "assets-%d.example.com" -- cgit v1.2.3