diff options
author | Godfrey Chan <godfreykfc@gmail.com> | 2014-08-17 11:44:31 -0700 |
---|---|---|
committer | Godfrey Chan <godfreykfc@gmail.com> | 2014-08-17 11:44:31 -0700 |
commit | 69ed422a9c534224eb818636d79d4263e2abd0a2 (patch) | |
tree | c478d21d773bcef82db277fb715c8b2a5a3f8b77 /actionpack | |
parent | beff925c32c70981959aaa37531bcf4cd9c8ba28 (diff) | |
download | rails-69ed422a9c534224eb818636d79d4263e2abd0a2.tar.gz rails-69ed422a9c534224eb818636d79d4263e2abd0a2.tar.bz2 rails-69ed422a9c534224eb818636d79d4263e2abd0a2.zip |
Fixed broken reference caused by 14965ba
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/test/dispatch/cookies_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/dispatch/cookies_test.rb b/actionpack/test/dispatch/cookies_test.rb index b40c21c067..7e7dd94425 100644 --- a/actionpack/test/dispatch/cookies_test.rb +++ b/actionpack/test/dispatch/cookies_test.rb @@ -519,8 +519,8 @@ class CookiesTest < ActionController::TestCase sign_secret = @request.env["action_dispatch.key_generator"].generate_key(@request.env["action_dispatch.encrypted_signed_cookie_salt"]) - sha1_verifier = ActiveSupport::MessageVerifier.new(sign_secret, serializer: ActionDispatch::Cookies::NullSerializer, digest: 'SHA1') - sha256_verifier = ActiveSupport::MessageVerifier.new(sign_secret, serializer: ActionDispatch::Cookies::NullSerializer, digest: 'SHA256') + sha1_verifier = ActiveSupport::MessageVerifier.new(sign_secret, serializer: ActiveSupport::MessageEncryptor::NullSerializer, digest: 'SHA1') + sha256_verifier = ActiveSupport::MessageVerifier.new(sign_secret, serializer: ActiveSupport::MessageEncryptor::NullSerializer, digest: 'SHA256') assert_raises(ActiveSupport::MessageVerifier::InvalidSignature) do sha1_verifier.verify(cookies[:foo]) |