aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorRohit Arondekar <rohit.arondekar@gmail.com>2010-07-30 02:12:35 -0700
committerRohit Arondekar <rohit.arondekar@gmail.com>2010-07-30 02:12:35 -0700
commit48d85a61bc0918d6ea1bad574c9672184d45f0ce (patch)
treebb88344fbcfa12bc274c2dd42778fabd6f6cfcab /actionpack
parentccd45618ed9a629c9535a5ff84ef5c238befa4ab (diff)
downloadrails-48d85a61bc0918d6ea1bad574c9672184d45f0ce.tar.gz
rails-48d85a61bc0918d6ea1bad574c9672184d45f0ce.tar.bz2
rails-48d85a61bc0918d6ea1bad574c9672184d45f0ce.zip
API Docs: Use 'HTTP_AUTHORIZATION' and not :authorize as key in integration tests.
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_controller/metal/http_authentication.rb2
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 be7448ce01..b0eb24a4a8 100644
--- a/actionpack/lib/action_controller/metal/http_authentication.rb
+++ b/actionpack/lib/action_controller/metal/http_authentication.rb
@@ -63,7 +63,7 @@ module ActionController
# def test_access_granted_from_xml
# get(
# "/notes/1.xml", nil,
- # :authorization => ActionController::HttpAuthentication::Basic.encode_credentials(users(:dhh).name, users(:dhh).password)
+ # 'HTTP_AUTHORIZATION' => ActionController::HttpAuthentication::Basic.encode_credentials(users(:dhh).name, users(:dhh).password)
# )
#
# assert_equal 200, status