rails/activerecord/test
Alberto Almagro 5e92770e5a Add regression test against habtm memoized singular_ids
Starting in Rails 5.0.0 and still present in Rails 5.2.1, `singular_ids`
got memoized and didn't reload after more items were added to the
relation.

Although 19c8071 happens to fix the issue, it only adds tests for
`has_many` relations while this bug only affected
`has_and_belongs_to_many` relations.

This commit adds a regression test to ensure it never happens again with
`habtm` relations.

Ensures #34179 never gets reproduced.
2018-10-16 13:16:09 +02:00
..
active_record/connection_adapters Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
assets Use YAML to serialize schema cache 2016-11-27 22:09:58 -05:00
cases Add regression test against habtm memoized singular_ids 2018-10-16 13:16:09 +02:00
fixtures Eager loading/preloading should be worked regardless of large number of records 2018-09-12 01:11:38 +09:00
migrations Fix occurrences Fixnum|Bignum 2018-03-04 20:44:30 +02:00
models Generate delegation methods to named scope in the definition time 2018-10-09 13:03:08 +09:00
schema Change the empty block style to have space inside of the block 2018-09-25 13:19:35 -04:00
support Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
config.example.yml Use utf8mb4 character set by default for MySQL database (#33608) 2018-09-11 13:03:34 -07:00
config.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00