aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/application/rake/initializers_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'railties/test/application/rake/initializers_test.rb')
-rw-r--r--railties/test/application/rake/initializers_test.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/railties/test/application/rake/initializers_test.rb b/railties/test/application/rake/initializers_test.rb
index fb498e28ad..8de4967021 100644
--- a/railties/test/application/rake/initializers_test.rb
+++ b/railties/test/application/rake/initializers_test.rb
@@ -29,6 +29,8 @@ module ApplicationTests
end
test "`rake initializers` outputs a deprecation warning" do
+ add_to_env_config("development", "config.active_support.deprecation = :stderr")
+
stderr = capture(:stderr) { run_rake_initializers }
assert_match(/DEPRECATION WARNING: Using `bin\/rake initializers` is deprecated and will be removed in Rails 6.1/, stderr)
end