diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2016-07-07 17:33:28 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-07 17:33:28 -0300 |
commit | 24f04b665748f3139c504f99b1e936ee44ebc258 (patch) | |
tree | 96b15ea5a64eb8df88dcc9092064a76c3a10b11b /railties | |
parent | 267c53a2a30e53eeb6fb58210398ab9d4ef9985b (diff) | |
parent | 193ad87b343a5b4616b57ac8af8817f2a3cf640a (diff) | |
download | rails-24f04b665748f3139c504f99b1e936ee44ebc258.tar.gz rails-24f04b665748f3139c504f99b1e936ee44ebc258.tar.bz2 rails-24f04b665748f3139c504f99b1e936ee44ebc258.zip |
Merge pull request #25730 from prathamesh-sonpatki/rm-cookie-only
No need to set `cookie_only` option from Rails
Diffstat (limited to 'railties')
-rw-r--r-- | railties/test/application/middleware/session_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/railties/test/application/middleware/session_test.rb b/railties/test/application/middleware/session_test.rb index 85e7761727..6ea7cad201 100644 --- a/railties/test/application/middleware/session_test.rb +++ b/railties/test/application/middleware/session_test.rb @@ -373,5 +373,11 @@ module ApplicationTests refute Rails.application.middleware.include?(ActionDispatch::Flash) end + + test "cookie_only is set to true even if user tries to overwrite it" do + add_to_config "config.session_store :cookie_store, key: '_myapp_session', cookie_only: false" + require "#{app_path}/config/environment" + assert app.config.session_options[:cookie_only], "Expected cookie_only to be set to true" + end end end |