File tree 1 file changed +10
-1
lines changed
railties/test/application
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -2312,7 +2312,7 @@ class ::DummySerializer < ActiveJob::Serializers::ObjectSerializer; end
2312
2312
assert_equal :lax , Rails . application . config . action_dispatch . cookies_same_site_protection
2313
2313
end
2314
2314
2315
- test "ActionView::Template.finalize_compiled_template_methods can be configured via config.action_view.finalize_compiled_template_methods " do
2315
+ test "Rails.application.config.action_dispatch.cookies_same_site_protection is :lax can be overriden " do
2316
2316
app_file "config/environments/production.rb" , <<~RUBY
2317
2317
Rails.application.configure do
2318
2318
config.action_dispatch.cookies_same_site_protection = :strict
@@ -2324,6 +2324,15 @@ class ::DummySerializer < ActiveJob::Serializers::ObjectSerializer; end
2324
2324
assert_equal :strict , Rails . application . config . action_dispatch . cookies_same_site_protection
2325
2325
end
2326
2326
2327
+ test "Rails.application.config.action_dispatch.cookies_same_site_protection is :lax in 6.1 defaults" do
2328
+ remove_from_config '.*config\.load_defaults.*\n'
2329
+ add_to_config 'config.load_defaults "6.1"'
2330
+
2331
+ app "development"
2332
+
2333
+ assert_equal :lax , Rails . application . config . action_dispatch . cookies_same_site_protection
2334
+ end
2335
+
2327
2336
test "ActiveStorage.queues[:analysis] is :active_storage_analysis by default" do
2328
2337
app "development"
2329
2338
You can’t perform that action at this time.
0 commit comments