diff options
author | Dwayne Litzenberger <dlitz@patientway.com> | 2012-03-05 19:46:01 -0500 |
---|---|---|
committer | Dwayne Litzenberger <dlitz@patientway.com> | 2012-03-05 19:46:01 -0500 |
commit | 8e26d29887c4b0c08a82ec003d32404d56d67bbc (patch) | |
tree | 508ed60db8a1af1bd522e32f49044be1fd45ad8e /actionpack/test/template/sprockets_helper_test.rb | |
parent | dc8071520761d954d0958316a45aa9223b70a3d1 (diff) | |
download | rails-8e26d29887c4b0c08a82ec003d32404d56d67bbc.tar.gz rails-8e26d29887c4b0c08a82ec003d32404d56d67bbc.tar.bz2 rails-8e26d29887c4b0c08a82ec003d32404d56d67bbc.zip |
Compute asset paths from the request if ENV["RAILS_RELATIVE_URL_ROOT"] is not set.
This should fix the following issue:
"Rails is not a Rack Application (SCRIPT_NAME vs. relative_url_root ?)"
https://github.com/rails/rails/issues/910
Diffstat (limited to 'actionpack/test/template/sprockets_helper_test.rb')
-rw-r--r-- | actionpack/test/template/sprockets_helper_test.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/test/template/sprockets_helper_test.rb b/actionpack/test/template/sprockets_helper_test.rb index 1c591bdcc2..d4d2dedfb6 100644 --- a/actionpack/test/template/sprockets_helper_test.rb +++ b/actionpack/test/template/sprockets_helper_test.rb @@ -12,6 +12,7 @@ class SprocketsHelperTest < ActionView::TestCase def protocol() 'http://' end def ssl?() false end def host_with_port() 'localhost' end + def script_name() nil end end def setup |