diff options
author | Francesco Rodriguez <lrodriguezsanc@gmail.com> | 2012-07-27 12:59:05 -0500 |
---|---|---|
committer | Francesco Rodriguez <lrodriguezsanc@gmail.com> | 2012-07-27 12:59:05 -0500 |
commit | 46b24c958a89b75e48ee42be0520a15b7c4484a9 (patch) | |
tree | c888cd36ee5abbb5ec64e36c1433aeb0c5cb9a1f /actionpack/lib/action_controller/metal | |
parent | c74ff7f73b9505478cec6eff20f1030a61285cd8 (diff) | |
download | rails-46b24c958a89b75e48ee42be0520a15b7c4484a9.tar.gz rails-46b24c958a89b75e48ee42be0520a15b7c4484a9.tar.bz2 rails-46b24c958a89b75e48ee42be0520a15b7c4484a9.zip |
use 'HTTP_AUTHORIZATION' instead of :authorization as key when dealing with HTTP Token authentication in integration tests
Diffstat (limited to 'actionpack/lib/action_controller/metal')
-rw-r--r-- | actionpack/lib/action_controller/metal/http_authentication.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/metal/http_authentication.rb b/actionpack/lib/action_controller/metal/http_authentication.rb index 0050ede806..b1c3100837 100644 --- a/actionpack/lib/action_controller/metal/http_authentication.rb +++ b/actionpack/lib/action_controller/metal/http_authentication.rb @@ -372,7 +372,7 @@ module ActionController # def test_access_granted_from_xml # get( # "/notes/1.xml", nil, - # :authorization => ActionController::HttpAuthentication::Token.encode_credentials(users(:dhh).token) + # 'HTTP_AUTHORIZATION' => ActionController::HttpAuthentication::Token.encode_credentials(users(:dhh).token) # ) # # assert_equal 200, status |