[ci skip] Fix syntax error + make example easier to follow.

Follow up to 9f152a60
上级 486e5153
......@@ -56,8 +56,9 @@ module HttpAuthentication
# 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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册