diff options
author | Sean Griffin <sean@seantheprogrammer.com> | 2014-12-28 14:20:24 -0700 |
---|---|---|
committer | Sean Griffin <sean@seantheprogrammer.com> | 2014-12-28 14:20:24 -0700 |
commit | 559489f10e516fed0f7c5cb56c75110c16f42b62 (patch) | |
tree | b160f0d257f2bc0177a25bce8fe8ceebc0dc3da2 /actionpack | |
parent | a2108132ed6b55df782eae0fc11149210d5e561d (diff) | |
parent | 75df8b9a77315b3af363c238918eedf52004c9b0 (diff) | |
download | rails-559489f10e516fed0f7c5cb56c75110c16f42b62.tar.gz rails-559489f10e516fed0f7c5cb56c75110c16f42b62.tar.bz2 rails-559489f10e516fed0f7c5cb56c75110c16f42b62.zip |
Merge pull request #18229 from benprew/patch-2
Update example test documentation
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_controller/metal/http_authentication.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/actionpack/lib/action_controller/metal/http_authentication.rb b/actionpack/lib/action_controller/metal/http_authentication.rb index fd578d60ca..33983d2c1d 100644 --- a/actionpack/lib/action_controller/metal/http_authentication.rb +++ b/actionpack/lib/action_controller/metal/http_authentication.rb @@ -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 |