diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2018-07-20 13:19:10 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2018-07-20 13:19:10 +0900 |
commit | 1a0bcc3b49e05eba852912f609a20c36a9656857 (patch) | |
tree | 761adf3eeb683933cb86dae00f68c632d317001f /railties/test/application | |
parent | 9f152a6066711325a37724f0561a505e134963e9 (diff) | |
download | rails-1a0bcc3b49e05eba852912f609a20c36a9656857.tar.gz rails-1a0bcc3b49e05eba852912f609a20c36a9656857.tar.bz2 rails-1a0bcc3b49e05eba852912f609a20c36a9656857.zip |
Fix deprecation message for `SOURCE_ANNOTATION_DIRECTORIES`
Also, added a test that a deprecated message will be output.
Diffstat (limited to 'railties/test/application')
-rw-r--r-- | railties/test/application/rake/notes_test.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/railties/test/application/rake/notes_test.rb b/railties/test/application/rake/notes_test.rb index d73e5cdfa3..999155fa93 100644 --- a/railties/test/application/rake/notes_test.rb +++ b/railties/test/application/rake/notes_test.rb @@ -87,6 +87,9 @@ module ApplicationTests assert_equal 6, lines.size assert_equal [4], lines.map(&:size).uniq + + log = File.read(Rails.application.config.paths["log"].first) + assert_match(/`SOURCE_ANNOTATION_DIRECTORIES` is deprecated/, log) end end |