rails--rails/activerecord/test/cases/type
Daniel Colson d30c85cebd
Fix bug with TypeMap default values
https://github.com/rails/rails/pull/42773 introduced a regression where
looking up an unregistered type on a TypeMap with a parent (like
[mysql2 TYPE_MAP_WITH_BOOLEAN](88ec15b850/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb (L618))
would cause a `LocalJumpError`

This commit fixes the error by forwarding the default block when
fetching from the parent TypeMap.

Co-authored-by: Chris Bloom <chrisbloom7@gmail.com>
2021-07-14 13:26:37 -04:00
..
adapter_specific_registry_test.rb Address `warning: Passing only keyword arguments` 2021-02-02 21:59:08 +09:00
date_time_test.rb Use `supports_datetime_with_precision?` rather than `subsecond_precision_supported?` 2020-04-25 02:56:53 +09:00
integer_test.rb
string_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
time_test.rb Should not accidentally return decorated time object after `changes_applied` 2020-09-01 16:26:10 +09:00
type_map_test.rb Fix bug with TypeMap default values 2021-07-14 13:26:37 -04:00
unsigned_integer_test.rb