diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-11-04 14:14:03 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-11-04 14:14:03 -0800 |
commit | 0d5a384498296f005395d02943bd18e688aba436 (patch) | |
tree | 95f947591e9788d9582c1eb10c85164be4338732 /railties/test/application | |
parent | 11370eea81ca3b7b9d79264c0a4517c961d45bf6 (diff) | |
download | rails-0d5a384498296f005395d02943bd18e688aba436.tar.gz rails-0d5a384498296f005395d02943bd18e688aba436.tar.bz2 rails-0d5a384498296f005395d02943bd18e688aba436.zip |
add a test for #17106
Diffstat (limited to 'railties/test/application')
-rw-r--r-- | railties/test/application/configuration_test.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/railties/test/application/configuration_test.rb b/railties/test/application/configuration_test.rb index 0eddf644d9..2b9f1d9cc1 100644 --- a/railties/test/application/configuration_test.rb +++ b/railties/test/application/configuration_test.rb @@ -59,6 +59,19 @@ module ApplicationTests end end + test "lib dir is on LOAD_PATH during config" do + app_file 'lib/my_logger.rb', <<-RUBY + require "logger" + class MyLogger < ::Logger + end + RUBY + add_to_top_of_config <<-RUBY + equire 'my_logger' + config.logger = MyLogger.new STDOUT + RUBY + require "#{app_path}/config/environment" + end + test "a renders exception on pending migration" do add_to_config <<-RUBY config.active_record.migration_error = :page_load |