mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
fix deprecation warning in cookie_store_test
The options argument to MessageVerifier#initialize should be a hash.
This commit is contained in:
parent
6185929882
commit
541018a07b
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ class CookieStoreTest < ActionDispatch::IntegrationTest
|
|||
SessionKey = '_myapp_session'
|
||||
SessionSecret = 'b3c631c314c0bbca50c1b2843150fe33'
|
||||
|
||||
Verifier = ActiveSupport::MessageVerifier.new(SessionSecret, 'SHA1')
|
||||
Verifier = ActiveSupport::MessageVerifier.new(SessionSecret, :digest => 'SHA1')
|
||||
SignedBar = Verifier.generate(:foo => "bar", :session_id => SecureRandom.hex(16))
|
||||
|
||||
class TestController < ActionController::Base
|
||||
|
|
Loading…
Reference in a new issue