aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/dispatch/cookies_test.rb
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2017-09-28 21:46:39 +0200
committerKasper Timm Hansen <kaspth@gmail.com>2017-09-28 21:46:39 +0200
commitf7b4be40410432b77e0c5d114b0ce73480ff984d (patch)
tree011d0497883b6923a247b2019a1ae02d17bc52f6 /actionpack/test/dispatch/cookies_test.rb
parent605ba70b111d87fa06316ed2266ceaedef60b6ab (diff)
downloadrails-f7b4be40410432b77e0c5d114b0ce73480ff984d.tar.gz
rails-f7b4be40410432b77e0c5d114b0ce73480ff984d.tar.bz2
rails-f7b4be40410432b77e0c5d114b0ce73480ff984d.zip
Test for nil, people not likely to assign it false.
Diffstat (limited to 'actionpack/test/dispatch/cookies_test.rb')
-rw-r--r--actionpack/test/dispatch/cookies_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/dispatch/cookies_test.rb b/actionpack/test/dispatch/cookies_test.rb
index fca3b24372..2051f7546f 100644
--- a/actionpack/test/dispatch/cookies_test.rb
+++ b/actionpack/test/dispatch/cookies_test.rb
@@ -899,8 +899,8 @@ class CookiesTest < ActionController::TestCase
assert_nil @response.cookies["foo"]
end
- def test_use_authenticated_cookie_encryption_uses_legacy_hmac_aes_cbc_encrypiton
- @request.env["action_dispatch.use_authenticated_cookie_encryption"] = false
+ def test_use_authenticated_cookie_encryption_uses_legacy_hmac_aes_cbc_encryption_when_not_enabled
+ @request.env["action_dispatch.use_authenticated_cookie_encryption"] = nil
key_generator = @request.env["action_dispatch.key_generator"]
encrypted_cookie_salt = @request.env["action_dispatch.encrypted_cookie_salt"]