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

Merge pull request #33401 from pinewong/patch-1

Fix problem with document expiration in ActionController::HttpAuthentication::Basic
This commit is contained in:
Rafael França 2018-07-20 00:06:57 -04:00 committed by GitHub
commit 9f152a6066
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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