diff options
author | lest <just.lest@gmail.com> | 2011-11-23 23:36:56 +0300 |
---|---|---|
committer | lest <just.lest@gmail.com> | 2011-11-23 23:50:04 +0300 |
commit | 98a1717e7c094d011c89ea1ed88673a595af2de8 (patch) | |
tree | 24fcc58fdef79730ae0840c4e1d35c532df8cd4e /actionpack/test/dispatch/cookies_test.rb | |
parent | 8549f7a4f0c30c37050666f5661ea9e270a298fd (diff) | |
download | rails-98a1717e7c094d011c89ea1ed88673a595af2de8.tar.gz rails-98a1717e7c094d011c89ea1ed88673a595af2de8.tar.bz2 rails-98a1717e7c094d011c89ea1ed88673a595af2de8.zip |
configuration option to always write cookie
Diffstat (limited to 'actionpack/test/dispatch/cookies_test.rb')
-rw-r--r-- | actionpack/test/dispatch/cookies_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/dispatch/cookies_test.rb b/actionpack/test/dispatch/cookies_test.rb index 49da448001..3765b7eb44 100644 --- a/actionpack/test/dispatch/cookies_test.rb +++ b/actionpack/test/dispatch/cookies_test.rb @@ -210,8 +210,8 @@ class CookiesTest < ActionController::TestCase assert_equal({"user_name" => "david"}, @response.cookies) end - def test_setting_cookie_with_secure_in_development - Rails.env.stubs(:development?).returns(true) + def test_setting_cookie_with_secure_when_always_write_cookie_is_true + ActionDispatch::Cookies::CookieJar.any_instance.stubs(:always_write_cookie).returns(true) get :authenticate_with_secure assert_cookie_header "user_name=david; path=/; secure" assert_equal({"user_name" => "david"}, @response.cookies) |