From f1057f0f286f4f6949b4e8262f5cdd611b6c7701 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 6 Sep 2024 15:07:29 +1000 Subject: [PATCH] Bring back deleted middleware test --- railties/test/commands/middleware_test.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/railties/test/commands/middleware_test.rb b/railties/test/commands/middleware_test.rb index 00c1af3ab67fa..c64720c03a86f 100644 --- a/railties/test/commands/middleware_test.rb +++ b/railties/test/commands/middleware_test.rb @@ -196,6 +196,12 @@ def app assert_includes middleware, "ActionDispatch::AssumeSSL" end + test "ActionDispatch::SSL is present when force_ssl is set" do + add_to_config "config.force_ssl = true" + boot! + assert_includes middleware, "ActionDispatch::SSL" + end + test "silence healthcheck" do add_to_config "config.silence_healthcheck_path = '/up'" boot!