diff options
author | Arthur Smith <arthurpsmith@gmail.com> | 2011-07-28 10:06:45 -0400 |
---|---|---|
committer | Steve Klabnik <steve@steveklabnik.com> | 2012-08-02 15:24:08 -0400 |
commit | b3e2abc4b130a27403ad1d25260c9200eb7cfaf0 (patch) | |
tree | 1eca97a803dcf3d48beb43ff7344555d5d3bd555 /actionpack/test | |
parent | d87524773d165ccd7292e61c4ee21be87f2b0703 (diff) | |
download | rails-b3e2abc4b130a27403ad1d25260c9200eb7cfaf0.tar.gz rails-b3e2abc4b130a27403ad1d25260c9200eb7cfaf0.tar.bz2 rails-b3e2abc4b130a27403ad1d25260c9200eb7cfaf0.zip |
Fix for digest authentication bug - issue #2301 in rails/rails
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/controller/http_digest_authentication_test.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/actionpack/test/controller/http_digest_authentication_test.rb b/actionpack/test/controller/http_digest_authentication_test.rb index 828ea5b0fb..b11ad633bd 100644 --- a/actionpack/test/controller/http_digest_authentication_test.rb +++ b/actionpack/test/controller/http_digest_authentication_test.rb @@ -139,11 +139,12 @@ class HttpDigestAuthenticationTest < ActionController::TestCase test "authentication request with request-uri that doesn't match credentials digest-uri" do @request.env['HTTP_AUTHORIZATION'] = encode_credentials(:username => 'pretty', :password => 'please') - @request.env['ORIGINAL_FULLPATH'] = "/http_digest_authentication_test/dummy_digest/altered/uri" + @request.env['PATH_INFO'] = "/proxied/uri" get :display - assert_response :unauthorized - assert_equal "Authentication Failed", @response.body + assert_response :success + assert assigns(:logged_in) + assert_equal 'Definitely Maybe', @response.body end test "authentication request with absolute request uri (as in webrick)" do |