diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2011-09-25 23:21:31 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2011-09-25 23:21:37 +0530 |
commit | 541018a07b6467bee5e22709ce7dc46880ea1ff4 (patch) | |
tree | 13a04ee1566f874352eab9598116ef3959b2632d /actionpack/test | |
parent | 61859298824cc688b56b93763cf70ae65efc9b64 (diff) | |
download | rails-541018a07b6467bee5e22709ce7dc46880ea1ff4.tar.gz rails-541018a07b6467bee5e22709ce7dc46880ea1ff4.tar.bz2 rails-541018a07b6467bee5e22709ce7dc46880ea1ff4.zip |
fix deprecation warning in cookie_store_test
The options argument to MessageVerifier#initialize should be a hash.
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/dispatch/session/cookie_store_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/dispatch/session/cookie_store_test.rb b/actionpack/test/dispatch/session/cookie_store_test.rb index 301bf9c6d2..92df6967d6 100644 --- a/actionpack/test/dispatch/session/cookie_store_test.rb +++ b/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 |