Skip to content

Commit ded0cfe

Browse files
authored
Bring back deleted middleware test (rails#52812)
1 parent 90ab51b commit ded0cfe

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

railties/test/commands/middleware_test.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,12 @@ def app
196196
assert_includes middleware, "ActionDispatch::AssumeSSL"
197197
end
198198

199+
test "ActionDispatch::SSL is present when force_ssl is set" do
200+
add_to_config "config.force_ssl = true"
201+
boot!
202+
assert_includes middleware, "ActionDispatch::SSL"
203+
end
204+
199205
test "silence healthcheck" do
200206
add_to_config "config.silence_healthcheck_path = '/up'"
201207
boot!

0 commit comments

Comments
 (0)