mirror of https://github.com/rails/rails
Merge pull request #18229 from benprew/patch-2
Update example test documentation
This commit is contained in:
commit
559489f10e
|
@ -53,10 +53,8 @@ module ActionController
|
|||
# In your integration tests, you can do something like this:
|
||||
#
|
||||
# def test_access_granted_from_xml
|
||||
# get(
|
||||
# "/notes/1.xml", nil,
|
||||
# 'HTTP_AUTHORIZATION' => ActionController::HttpAuthentication::Basic.encode_credentials(users(:dhh).name, users(:dhh).password)
|
||||
# )
|
||||
# @request.env['HTTP_AUTHORIZATION'] => ActionController::HttpAuthentication::Basic.encode_credentials(users(:dhh).name, users(:dhh).password)
|
||||
# get "/notes/1.xml"
|
||||
#
|
||||
# assert_equal 200, status
|
||||
# end
|
||||
|
|
Loading…
Reference in New Issue