diff options
author | José Valim <jose.valim@gmail.com> | 2010-04-08 12:52:37 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-04-08 12:52:37 +0200 |
commit | 4e92134dfa15ae198c714b85376838ffec5a7773 (patch) | |
tree | 043a10da476019c7cb53934eb40326ea8a57b34e /railties/test | |
parent | 336cb3c0bf3d38400f6c774ca78376117b899985 (diff) | |
download | rails-4e92134dfa15ae198c714b85376838ffec5a7773.tar.gz rails-4e92134dfa15ae198c714b85376838ffec5a7773.tar.bz2 rails-4e92134dfa15ae198c714b85376838ffec5a7773.zip |
Fix a bug in ActionDispatch::Static where Rails cannot find assets if started in another directory which is not the RAILS_ROOT.
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/application/configuration_test.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/railties/test/application/configuration_test.rb b/railties/test/application/configuration_test.rb index 97d5f64708..8bf0f09d6b 100644 --- a/railties/test/application/configuration_test.rb +++ b/railties/test/application/configuration_test.rb @@ -184,6 +184,15 @@ module ApplicationTests end end + test "config.paths.public sets Rails.public_path" do + add_to_config <<-RUBY + config.paths.public = "somewhere" + RUBY + + require "#{app_path}/config/application" + assert_equal File.join(app_path, "somewhere"), Rails.public_path + end + def make_basic_app require "rails" require "action_controller/railtie" |