aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2011-09-26 11:20:30 -0300
committerSantiago Pastorino <santiago@wyeworks.com>2011-09-26 11:20:30 -0300
commitb8553274439d34568a4c16031ed86ac6d111681d (patch)
tree1eb6e5ec5219846f233e948129878a2ed980081b /actionpack/test/template
parenta15424b92c182bcc4d2b693dc0001a44c9b0802f (diff)
downloadrails-b8553274439d34568a4c16031ed86ac6d111681d.tar.gz
rails-b8553274439d34568a4c16031ed86ac6d111681d.tar.bz2
rails-b8553274439d34568a4c16031ed86ac6d111681d.zip
image_tag should use /assets if asset pipelining is turned on. Closes #3126
Diffstat (limited to 'actionpack/test/template')
-rw-r--r--actionpack/test/template/sprockets_helper_test.rb4
1 files changed, 4 insertions, 0 deletions
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 '<img alt="Xml" src="/assets/xml.png" />', 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"