1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

[ci skip] Fix syntax error + make example easier to follow.

Follow up to 9f152a606
This commit is contained in:
Kasper Timm Hansen 2018-07-20 21:15:24 +02:00
parent 486e5153cb
commit 5491f81157
No known key found for this signature in database
GPG key ID: 191153215EDA53D8

View file

@ -56,8 +56,9 @@ module ActionController
# In your integration tests, you can do something like this:
#
# def test_access_granted_from_xml
# headers = { 'HTTP_AUTHORIZATION' => ActionController::HttpAuthentication::Basic.encode_credentials(users(:dhh).name, users(:dhh).password }
# get "/notes/1.xml", headers: headers
# authorization = ActionController::HttpAuthentication::Basic.encode_credentials(users(:dhh).name, users(:dhh).password)
#
# get "/notes/1.xml", headers: { 'HTTP_AUTHORIZATION' => authorization }
#
# assert_equal 200, status
# end