aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller
diff options
context:
space:
mode:
authorCarlhuda <carlhuda@engineyard.com>2010-03-04 15:06:25 -0800
committerCarlhuda <carlhuda@engineyard.com>2010-03-04 16:05:52 -0800
commite311622e7b20b3fdeab6a93418c8a45c6e7137b6 (patch)
treea0b7ce433c1ce65da2bc5e9fdb9e8d70753537da /actionpack/test/controller
parent48bb3b3904806abaea7c62961559c03e689dd12f (diff)
downloadrails-e311622e7b20b3fdeab6a93418c8a45c6e7137b6.tar.gz
rails-e311622e7b20b3fdeab6a93418c8a45c6e7137b6.tar.bz2
rails-e311622e7b20b3fdeab6a93418c8a45c6e7137b6.zip
Deprecated ActionController::Base.session_options= and ActionController::Base.session_store= in favor of a config.session_store method (which takes params) and a config.cookie_secret variable, which is used in various secret scenarios. The old AC::Base options will continue to work with deprecation warnings.
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r--actionpack/test/controller/http_digest_authentication_test.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/actionpack/test/controller/http_digest_authentication_test.rb b/actionpack/test/controller/http_digest_authentication_test.rb
index 6f167fe627..eb2af523a2 100644
--- a/actionpack/test/controller/http_digest_authentication_test.rb
+++ b/actionpack/test/controller/http_digest_authentication_test.rb
@@ -41,11 +41,12 @@ class HttpDigestAuthenticationTest < ActionController::TestCase
setup do
# Used as secret in generating nonce to prevent tampering of timestamp
@secret = "session_options_secret"
- @old_secret, ActionController::Base.session_options[:secret] = ActionController::Base.session_options[:secret], @secret
+ @controller.config.secret = @secret
+ # @old_secret, ActionController::Base.config.secret[:secret] = ActionController::Base.session_options[:secret], @secret
end
teardown do
- ActionController::Base.session_options[:secret] = @old_secret
+ # ActionController::Base.session_options[:secret] = @old_secret
end
AUTH_HEADERS.each do |header|