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:
commit
9f152a6066
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue