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!