better documentation for `AS::Testing::Declarative#test`. [ci skip]
log the sql that is actually sent to the database

If I have a query that produces sql
`WHERE "users"."name" = 'a         b'` then in the log all the
whitespace is being squeezed. So the sql that is printed in the
log is `WHERE "users"."name" = 'a b'`.

This can be confusing. This commit fixes it by ensuring that
whitespace is not squeezed.

fixes #10982
Merge pull request #10991 from neerajdotname/10982

log the sql that is actually sent to the database
add documentation for `ActiveSupport::Testing::SetupAndTeardown`.
Revert "Merge pull request #10566 from neerajdotname/10509d"

This reverts commit 2b817a5e89ac0e7aeb894a40ae7151a0cf3cef16, reversing
changes made to 353a398bee68c5ea99d76ac7601de0a5fef6f4a5.

Conflicts:
	activerecord/CHANGELOG.md

Reason: the build broke