Official samples for testing BASIC/Digest/Token authentications are missing in Testing Guides

As far as I looked into it, sample tests (especially system tests) for testing BASIC/Digest/Token authentications are missing in Testing Guides, except the following fragmented sample:

post articles_url, params: { article: { body: "Rails is awesome!", title: "Hello Rails" } }, headers: { Authorization: ActionController::HttpAuthentication::Basic.encode_credentials("dhh", "secret") }

I believe such sample tests are still needed, especially for educational usages. Don’t you have any plans to add such sample tests to Testing Guides?

To be honest, I had been thinking the testing guide needs to be split up by category for a while. I haven’t thought very deeply yet though, and not sure where this particular example fits.

1 Like