aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2012-08-02 13:50:54 -0700
committerRafael Mendonça França <rafaelmfranca@gmail.com>2012-08-02 13:50:54 -0700
commit6e523766d8a64bf18ac6d0e261c6bd962bc6c0a9 (patch)
treef12673dc1a34a580c77884bd79e1c4e71cdd479a /actionpack/test
parent077372b20d1024eace791af27792b71c0b7ccdb9 (diff)
parent6beaafd0c4289d5f19b2e01f84338cd7e2ff8032 (diff)
downloadrails-6e523766d8a64bf18ac6d0e261c6bd962bc6c0a9.tar.gz
rails-6e523766d8a64bf18ac6d0e261c6bd962bc6c0a9.tar.bz2
rails-6e523766d8a64bf18ac6d0e261c6bd962bc6c0a9.zip
Merge pull request #7240 from steveklabnik/fix_2301
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.rb7
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