rails/activerecord/test
Jonathan Hefner 7f5deeeee6 Fix flakey destroyed_by_association tests
Example failure: https://buildkite.com/rails/rails/builds/68661#84f8790a-fc9e-42ef-a7fb-5bd15a489de8/1002-1012

The failing `destroyed_by_association` tests create an author (a
DestroyByParentAuthor) and a book (a DestroyByParentBook) that belongs
to that author.  If the database already contains books that refer to
that author's ID from previous tests (i.e. tests that disabled
`use_transactional_tests`), then one of those books will be loaded and
destroyed instead of the intended DestroyByParentBook book.

By loading the `:books` fixtures, we ensure the database does not
contain such unexpected books.

Co-authored-by: Eugene Kenny <elkenny@gmail.com>
Co-authored-by: Ryuta Kamizono <kamipo@gmail.com>
2020-05-04 19:26:54 -05:00
..
active_record/connection_adapters Deduplicate various Active Record schema cache structures 2019-06-03 13:31:42 +02:00
assets
cases Fix flakey destroyed_by_association tests 2020-05-04 19:26:54 -05:00
fixtures Allow AR::Enum definitions with boolean values 2019-12-24 07:05:42 -10:00
migrations
models Fix random CI failure due to non-deterministic has_one record 2020-05-03 23:52:35 +09:00
schema Use supports_datetime_with_precision? rather than subsecond_precision_supported? 2020-04-25 02:56:53 +09:00
support Merge pull request #38401 from vinistock/stop_stringifying_during_attribute_assignment 2020-02-13 16:54:35 -05:00
config.example.yml Remove more code for unsupported frontbase and ibm_db adapters 2020-04-12 11:45:28 +09:00
config.rb