mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
use 'HTTP_AUTHORIZATION' instead of :authorization as key when dealing with HTTP Token authentication in integration tests
This commit is contained in:
parent
c74ff7f73b
commit
46b24c958a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue