aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/dispatch
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2014-08-08 18:20:17 -0300
committerSantiago Pastorino <santiago@wyeworks.com>2014-08-08 18:20:33 -0300
commitd70ba48c4dd6b57d8f38612ea95a3842337c1419 (patch)
tree7dd4e40be314eab0e55072714c3454a88110b7ca /actionpack/test/dispatch
parent705977620539e2be6548027042f33175ebdc2505 (diff)
downloadrails-d70ba48c4dd6b57d8f38612ea95a3842337c1419.tar.gz
rails-d70ba48c4dd6b57d8f38612ea95a3842337c1419.tar.bz2
rails-d70ba48c4dd6b57d8f38612ea95a3842337c1419.zip
Revert "Merge pull request #16434 from strzalek/cookies-digest-config-option"
This reverts commit 705977620539e2be6548027042f33175ebdc2505, reversing changes made to dde91e9bf5ab246f0f684b40288b272f4ba9a699. IT BROKE THE BUILD!!!
Diffstat (limited to 'actionpack/test/dispatch')
-rw-r--r--actionpack/test/dispatch/cookies_test.rb17
1 files changed, 0 insertions, 17 deletions
diff --git a/actionpack/test/dispatch/cookies_test.rb b/actionpack/test/dispatch/cookies_test.rb
index 744143fc2c..0f145666d1 100644
--- a/actionpack/test/dispatch/cookies_test.rb
+++ b/actionpack/test/dispatch/cookies_test.rb
@@ -369,23 +369,6 @@ class CookiesTest < ActionController::TestCase
assert_equal 'Jamie', @controller.send(:cookies).permanent[:user_name]
end
- def test_signed_cookie_using_default_digest
- get :set_signed_cookie
- cookies = @controller.send :cookies
- assert_not_equal 45, cookies[:user_id]
- assert_equal 45, cookies.signed[:user_id]
- assert_equal 'SHA1', cookies.signed.instance_variable_get(:"@verifier").instance_variable_get(:"@digest")
- end
-
- def test_signed_cookie_using_custom_digest
- @request.env["action_dispatch.cookies_digest"] = 'SHA256'
- get :set_signed_cookie
- cookies = @controller.send :cookies
- assert_not_equal 45, cookies[:user_id]
- assert_equal 45, cookies.signed[:user_id]
- assert_equal 'SHA256', cookies.signed.instance_variable_get(:"@verifier").instance_variable_get(:"@digest")
- end
-
def test_signed_cookie_using_default_serializer
get :set_signed_cookie
cookies = @controller.send :cookies