Use NameError#name to assert raised error.

This makes the test compatible with other Ruby implementations, which
may implement error messages differently.
[ci skip] Add return values to examples
[ci skip] Consolidate docs for `first`

Add docs for `first` when provided a numerical argument. 

Since `first!` behaves exactly the same way but can raise an argument we can consolidate it in the `first` section.
[ci skip] Consolidate docs for `find_by`

Since `find_by!` behaves exactly the same way but can raise an argument we can consolidate it in the `find_by` section.
[ci skip] Consolidate docs for `take`

Add docs on what happens when a numerical argument is provided to take.

Since `take!` behaves exactly the same way but can raise an argument we can consolidate it in the `take` section.
[ci skip] Consolidate docs for `last`

Add docs on what happens when a numerical argument is provided to last.

Since `last!` behaves exactly the same way but can raise an argument we can consolidate it in the `last` section.
[ci skip] Consolidate docs for `find`

Put all options for overloading `find` in one section
[ci skip] Doc ability to chain in `find_each`

Also use appropriate mailer syntax in the `find_each` block.
[ci skip] Fix doc for except

The example showed is `except`, however the method "documented" is `unstop`. Fix to align the docs to the example.
[ci skip] remove invalid code from docs
Prefer find_by over where.first for record
Silence the output downloading a file

This output isn't used anywhere for assertions so we can simply remove
it. The introducing commit was f238d495.
Merge pull request #11993 from razielgn/actionview-use-name-to-inspect-error

Use NameError#name to assert raised error.
Fixing typo in comment
Merge pull request #16144 from grekko/patch-1

Fixing typo in comment
Merge pull request #16143 from robin850/silence-downloading-output

Silence Downloader's output
Assert the nature of the original exception

Just so it's clearer what's going on in the following assertion.

/cc #11993 @robin850
Revert "[ci skip] Fix doc for except"

This reverts commit 0f6b101e09d210cea2494c5d4225760f1951ea67.

Reason: It's better to let `unscope` be documented. We can add a
separate section for `except`.
fix mismatched example call [ci skip]
Merge branch 'master' of github.com:rails/docrails

Conflicts:
	activerecord/lib/active_record/base.rb