1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Test for nil, people not likely to assign it false.

This commit is contained in:
Kasper Timm Hansen 2017-09-28 21:46:39 +02:00
parent 605ba70b11
commit f7b4be4041
No known key found for this signature in database
GPG key ID: 191153215EDA53D8

View file

@ -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"]