diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2018-11-13 17:53:55 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-13 17:53:55 -0500 |
commit | 0b75743e345f98d3f53f5a29fcd0e91d2a370a24 (patch) | |
tree | 1020bed2638cff5df24199fd1b1010adf474d720 /railties/test | |
parent | 3dea7f0615144e891d4122697638db735fbea71d (diff) | |
parent | cffbf73a4761816d894a49fbec7f070f27ebbff4 (diff) | |
download | rails-0b75743e345f98d3f53f5a29fcd0e91d2a370a24.tar.gz rails-0b75743e345f98d3f53f5a29fcd0e91d2a370a24.tar.bz2 rails-0b75743e345f98d3f53f5a29fcd0e91d2a370a24.zip |
Merge pull request #34400 from gmcgibbon/rm_autoload_app_javascripts
Remove asset paths from autoload_paths
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/application/configuration_test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/railties/test/application/configuration_test.rb b/railties/test/application/configuration_test.rb index fa418f564b..b8a0434432 100644 --- a/railties/test/application/configuration_test.rb +++ b/railties/test/application/configuration_test.rb @@ -1663,6 +1663,14 @@ module ApplicationTests assert_kind_of Hash, Rails.application.config.database_configuration end + test "autoload paths do not include asset paths" do + app "development" + ActiveSupport::Dependencies.autoload_paths.each do |path| + assert_not_operator path, :ends_with?, "app/assets" + assert_not_operator path, :ends_with?, "app/javascript" + end + end + test "raises with proper error message if no database configuration found" do FileUtils.rm("#{app_path}/config/database.yml") err = assert_raises RuntimeError do |