Within the AR tests, when I modified the first line of test_saves_both_date_and_time in date_time_test.rb from:
now = 200.years.ago.to_datetime
to:
now = 20.years.ago.to_datetime
The test failed with the message:
1) Failure:
test_saves_both_date_and_time(DateTimeTest) [test/date_time_test.rb:13]:
<Thu, 05 Nov 1987 19:09:39 +1100> expected but was
<Thu, 05 Nov 1987 19:09:39 +1100>.
After some investigation it turns out the datetime extension in active support is the culprit. It misses the == operator. Attached is a test to show the issue.
(as follow up to #10073)