rails/activerecord/test
Kasper Timm Hansen 19deeb08df Fix tests with counter cache touching and more.
* Refactor to use `touch_updates`

  Ensures we only call `current_time_from_proper_timezone` from one place.

* Clarify touch default in tests.

  Not interested in what happens when passed false but that
  nothing passed means no touching.

* Backdate touched columns in tests.

  We can't be sure a test progresses through time, so our
  touching code may be working correctly but the test
  itself is brittle.

  Fix by backdating that's further in the past akin to
  what the timestamps tests do:
  d753645d40/activerecord/test/cases/timestamp_test.rb (L17)

* Expand changelog entry.

  Elaborate and show examples.

Closes #26995.

[ Jarred Trost & Kasper Timm Hansen ]
2017-01-01 18:34:50 +01:00
..
active_record/connection_adapters Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
assets Use YAML to serialize schema cache 2016-11-27 22:09:58 -05:00
cases Fix tests with counter cache touching and more. 2017-01-01 18:34:50 +01:00
fixtures fix #create_fixtures when equal table names in different databases 2016-12-21 11:09:29 +01:00
migrations modernizes hash syntax in activerecord 2016-08-06 19:37:57 +02:00
models Should not update children when the parent creation with no reason 2016-12-29 16:24:57 +09:00
schema Should not update children when the parent creation with no reason 2016-12-29 16:24:57 +09:00
support fix #create_fixtures when equal table names in different databases 2016-12-21 11:09:29 +01:00
.gitignore
config.example.yml Fix tests for prepared_statements: false and queries hitting #select_all 2016-11-19 21:52:52 +05:30
config.rb