diff options
Diffstat (limited to 'actionpack/test/template')
-rw-r--r-- | actionpack/test/template/asset_tag_helper_test.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/actionpack/test/template/asset_tag_helper_test.rb b/actionpack/test/template/asset_tag_helper_test.rb index d5ea05bf37..9a242c6a5a 100644 --- a/actionpack/test/template/asset_tag_helper_test.rb +++ b/actionpack/test/template/asset_tag_helper_test.rb @@ -196,4 +196,14 @@ class AssetTagHelperNonVhostTest < Test::Unit::TestCase assert_nothing_raised { image_tag('') } end + def test_stylesheet_with_asset_host_already_encoded + ActionController::Base.asset_host = "http://foo.example.com" + result = stylesheet_link_tag("http://bar.example.com/stylesheets/style.css") + assert_dom_equal( + %(<link href="http://bar.example.com/stylesheets/style.css" media="screen" rel="Stylesheet" type="text/css" />), + result) + ensure + ActionController::Base.asset_host = "" + end + end |