Skip to content

Commit f7b4be4

Browse files
committed
Test for nil, people not likely to assign it false.
1 parent 605ba70 commit f7b4be4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

actionpack/test/dispatch/cookies_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -899,8 +899,8 @@ def test_legacy_signed_cookie_is_treated_as_nil_by_encrypted_cookie_jar_if_tampe
899899
assert_nil @response.cookies["foo"]
900900
end
901901

902-
def test_use_authenticated_cookie_encryption_uses_legacy_hmac_aes_cbc_encrypiton
903-
@request.env["action_dispatch.use_authenticated_cookie_encryption"] = false
902+
def test_use_authenticated_cookie_encryption_uses_legacy_hmac_aes_cbc_encryption_when_not_enabled
903+
@request.env["action_dispatch.use_authenticated_cookie_encryption"] = nil
904904

905905
key_generator = @request.env["action_dispatch.key_generator"]
906906
encrypted_cookie_salt = @request.env["action_dispatch.encrypted_cookie_salt"]

0 commit comments

Comments
 (0)