Permalink
Browse files

fix deprecation warning in cookie_store_test

The options argument to MessageVerifier#initialize should be a hash.
  • Loading branch information...
1 parent 6185929 commit 541018a07b6467bee5e22709ce7dc46880ea1ff4 @vijaydev vijaydev committed Sep 25, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/test/dispatch/session/cookie_store_test.rb
@@ -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

0 comments on commit 541018a

Please sign in to comment.