diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2011-10-05 15:41:28 -0200 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2011-10-05 15:41:28 -0200 |
commit | fd8f0b297822ba36002084faa36bd0320d3be4a7 (patch) | |
tree | 666f3febd45b80d4babe236c28c31eebc525200f /actionpack/test/template | |
parent | c495bfc127405f7ead0d1c275c4d75682a51e00e (diff) | |
download | rails-fd8f0b297822ba36002084faa36bd0320d3be4a7.tar.gz rails-fd8f0b297822ba36002084faa36bd0320d3be4a7.tar.bz2 rails-fd8f0b297822ba36002084faa36bd0320d3be4a7.zip |
stylesheet_link_tag('/stylesheets/application') and similar helpers doesn't throw Sprockets::FileOutsidePaths exception anymore
Diffstat (limited to 'actionpack/test/template')
-rw-r--r-- | actionpack/test/template/sprockets_helper_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/actionpack/test/template/sprockets_helper_test.rb b/actionpack/test/template/sprockets_helper_test.rb index 08b66fec8b..db69f95130 100644 --- a/actionpack/test/template/sprockets_helper_test.rb +++ b/actionpack/test/template/sprockets_helper_test.rb @@ -219,6 +219,8 @@ class SprocketsHelperTest < ActionView::TestCase @config.assets.compile = true @config.assets.debug = true + assert_match %r{<script src="/javascripts/application.js" type="text/javascript"></script>}, + javascript_include_tag('/javascripts/application') assert_match %r{<script src="/assets/xmlhr-[0-9a-f]+.js\?body=1" type="text/javascript"></script>\n<script src="/assets/application-[0-9a-f]+.js\?body=1" type="text/javascript"></script>}, javascript_include_tag(:application) end @@ -264,6 +266,9 @@ class SprocketsHelperTest < ActionView::TestCase @config.assets.compile = true @config.assets.debug = true + assert_match %r{<link href="/stylesheets/application.css" media="screen" rel="stylesheet" type="text/css" />}, + stylesheet_link_tag('/stylesheets/application') + assert_match %r{<link href="/assets/style-[0-9a-f]+.css\?body=1" media="screen" rel="stylesheet" type="text/css" />\n<link href="/assets/application-[0-9a-f]+.css\?body=1" media="screen" rel="stylesheet" type="text/css" />}, stylesheet_link_tag(:application) |