Updated #14544 to work with `activerecord-deprecated_finders`

Simply used older style of lambda definitions within a test.
Fixes Issue #13466. See #14544 for complete description.

Conflicts:
	activerecord/CHANGELOG.md
	activerecord/lib/active_record/scoping/named.rb
Yeah, you're right that's better.