diff options
author | phoet <phoetmail@googlemail.com> | 2014-05-01 15:10:56 -0400 |
---|---|---|
committer | phoet <phoetmail@googlemail.com> | 2014-05-01 16:09:17 -0400 |
commit | b6aa70c3b50574832fc4646f083c50a30df1d6b4 (patch) | |
tree | eaabc5ae14594841d8f907659563e636af240f8e /actionview/test/template | |
parent | 0b6ac002f9afa5952c1b03aea4284e61d6239938 (diff) | |
download | rails-b6aa70c3b50574832fc4646f083c50a30df1d6b4.tar.gz rails-b6aa70c3b50574832fc4646f083c50a30df1d6b4.tar.bz2 rails-b6aa70c3b50574832fc4646f083c50a30df1d6b4.zip |
always use File.join
Diffstat (limited to 'actionview/test/template')
-rw-r--r-- | actionview/test/template/asset_tag_helper_test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/actionview/test/template/asset_tag_helper_test.rb b/actionview/test/template/asset_tag_helper_test.rb index 651978ed80..18e4277d7a 100644 --- a/actionview/test/template/asset_tag_helper_test.rb +++ b/actionview/test/template/asset_tag_helper_test.rb @@ -309,6 +309,14 @@ class AssetTagHelperTest < ActionView::TestCase AssetPathToTag.each { |method, tag| assert_dom_equal(tag, eval(method)) } end + def test_asset_path_tag_to_not_create_duplicate_slashes + @controller.config.asset_host = "host/" + assert_dom_equal('http://host/foo', asset_path("foo")) + + @controller.config.relative_url_root = '/some/root/' + assert_dom_equal('http://host/some/root/foo', asset_path("foo")) + end + def test_compute_asset_public_path assert_equal "/robots.txt", compute_asset_path("robots.txt") assert_equal "/robots.txt", compute_asset_path("/robots.txt") |