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:
parent
486e5153cb
commit
5491f81157
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue