diff options
author | Carlhuda <carlhuda@engineyard.com> | 2010-03-02 16:22:53 -0800 |
---|---|---|
committer | Carlhuda <carlhuda@engineyard.com> | 2010-03-03 15:49:52 -0800 |
commit | bf9913f8f43a2436c644ad893d3d7034f7d7e256 (patch) | |
tree | 7303219f42781fe8d70d5c9b80ba54107986a604 /actionpack/test/controller | |
parent | 9731c5213b9f1a46c478da862b43cbf708da40da (diff) | |
download | rails-bf9913f8f43a2436c644ad893d3d7034f7d7e256.tar.gz rails-bf9913f8f43a2436c644ad893d3d7034f7d7e256.tar.bz2 rails-bf9913f8f43a2436c644ad893d3d7034f7d7e256.zip |
Move session_store and session_options to the AC configuration object
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/http_digest_authentication_test.rb | 5 |
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 7e9a2625f1..22d2e23de1 100644 --- a/actionpack/test/controller/http_digest_authentication_test.rb +++ b/actionpack/test/controller/http_digest_authentication_test.rb @@ -40,7 +40,8 @@ class HttpDigestAuthenticationTest < ActionController::TestCase setup do # Used as secret in generating nonce to prevent tampering of timestamp - @old_secret, ActionController::Base.session_options[:secret] = ActionController::Base.session_options[:secret], "session_options_secret" + @secret = "session_options_secret" + @old_secret, ActionController::Base.session_options[:secret] = ActionController::Base.session_options[:secret], @secret end teardown do @@ -202,7 +203,7 @@ class HttpDigestAuthenticationTest < ActionController::TestCase test "validate_digest_response should fail with nil returning password_procedure" do @request.env['HTTP_AUTHORIZATION'] = encode_credentials(:username => nil, :password => nil) - assert !ActionController::HttpAuthentication::Digest.validate_digest_response(@request, "SuperSecret"){nil} + assert !ActionController::HttpAuthentication::Digest.validate_digest_response(@secret, @request, "SuperSecret"){nil} end private |