diff options
author | JessRudder <thejessicarudder@gmail.com> | 2016-11-28 19:28:40 -0500 |
---|---|---|
committer | JessRudder <thejessicarudder@gmail.com> | 2016-11-28 19:28:40 -0500 |
commit | a92e115e1925034d3cae6b7c173a4a12e810e667 (patch) | |
tree | ea122bf64396a659442b3a5f8f52fb330321cdcd /guides/source | |
parent | 06d20496186249a72ba40404d7a3425fd3eeb5c9 (diff) | |
download | rails-a92e115e1925034d3cae6b7c173a4a12e810e667.tar.gz rails-a92e115e1925034d3cae6b7c173a4a12e810e667.tar.bz2 rails-a92e115e1925034d3cae6b7c173a4a12e810e667.zip |
Add note about step needed to get tests to pass if you implemented basic auth [ci skip]
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/testing.md | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/guides/source/testing.md b/guides/source/testing.md index bc1f78fb2a..29a9537141 100644 --- a/guides/source/testing.md +++ b/guides/source/testing.md @@ -800,6 +800,13 @@ end Now you can try running all the tests and they should pass. +NOTE: If you followed the steps in the Basic Authentication section, you'll need to add the following to the `setup` block to get all the tests passing: + +```ruby +request.headers['Authorization'] = ActionController::HttpAuthentication::Basic. + encode_credentials('dhh', 'secret') +``` + ### Available Request Types for Functional Tests If you're familiar with the HTTP protocol, you'll know that `get` is a type of request. There are 6 request types supported in Rails functional tests: |