Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix deprecation warning in cookie_store_test

The options argument to MessageVerifier#initialize should be a hash.
  • Loading branch information...
commit 541018a07b6467bee5e22709ce7dc46880ea1ff4 1 parent 6185929
Vijay Dev vijaydev authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  actionpack/test/dispatch/session/cookie_store_test.rb
2  actionpack/test/dispatch/session/cookie_store_test.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.