Merge pull request #18229 from benprew/patch-2

Update example test documentation
This commit is contained in:
Sean Griffin 2014-12-28 14:20:24 -07:00
commit 559489f10e
1 changed files with 2 additions and 4 deletions

View File

@ -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