mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Passing in a Hash instance as non-kwargs parameters has to be braced in Ruby 3.0 syntax
This commit is contained in:
parent
b5704f3b38
commit
08ee9d1490
2 changed files with 2 additions and 2 deletions
|
@ -899,7 +899,7 @@ class CookiesTest < ActionController::TestCase
|
|||
|
||||
key_generator = @request.env["action_dispatch.key_generator"]
|
||||
old_secret = key_generator.generate_key(@request.env["action_dispatch.signed_cookie_salt"])
|
||||
old_value = ActiveSupport::MessageVerifier.new(old_secret).generate(bar: "baz")
|
||||
old_value = ActiveSupport::MessageVerifier.new(old_secret).generate({bar: "baz"})
|
||||
|
||||
@request.headers["Cookie"] = "foo=#{old_value}"
|
||||
get :get_signed_cookie
|
||||
|
|
|
@ -123,7 +123,7 @@ class CookieStoreTest < ActionDispatch::IntegrationTest
|
|||
with_test_route_set do
|
||||
encryptor = ActiveSupport::MessageEncryptor.new("A" * 32, cipher: "aes-256-gcm", serializer: Marshal)
|
||||
|
||||
cookies[SessionKey] = encryptor.encrypt_and_sign("foo" => "bar", "session_id" => "abc")
|
||||
cookies[SessionKey] = encryptor.encrypt_and_sign({"foo" => "bar", "session_id" => "abc"})
|
||||
|
||||
get "/get_session_value"
|
||||
|
||||
|
|
Loading…
Reference in a new issue