rails--rails/activerecord/test/cases
Jean Boussier 125987e35d Deprecate `partial_writes` in favor of `partial_inserts` and `partial_updates`
This allows to have a different behavior on update and create.

For instance it might be desirable to disable partial inserts
to protect against a concurrent migration removing the default
value of a column, which would cause processes with an outdated
schema cache to fail on insert.
2021-06-02 15:04:08 +02:00
..
adapters Fix ruby-master test suite (Psych 4.0.0) 2021-05-19 14:21:21 +02:00
arel Support NullsFirst for all databases. 2021-05-18 16:58:21 -04:00
associations Deprecate `partial_writes` in favor of `partial_inserts` and `partial_updates` 2021-06-02 15:04:08 +02:00
attribute_methods Remove internal attribute decoration code 2020-07-20 13:26:25 +09:00
coders
connection_adapters Fix ruby-master test suite (Psych 4.0.0) 2021-05-19 14:21:21 +02:00
database_configurations chore: fix spelling 2021-03-07 18:09:45 +10:00
encryption Modify `assert_storage_performance` to be quiet by default 2021-05-02 23:56:56 -05:00
fixture_set Extract internal ActiveSupport::ConfigurationFile object 2020-02-10 02:50:12 +01:00
migration Active Record + PostgreSQL: native support for `timestamp with time zone` 2021-05-06 17:41:55 -05:00
relation Add tests for and method 2021-05-30 10:26:44 -03:00
scoping Add tests for argument error messages in ActiveRecord methods 2021-05-25 20:34:04 -03:00
tasks Give precedence to the DatabaseTasks registered last 2021-03-25 13:08:37 +01:00
type Address `warning: Passing only keyword arguments` 2021-02-02 21:59:08 +09:00
validations Fix build 2021-04-06 11:13:33 -07:00
adapter_prevent_writes_test.rb Clean up preventing writes tests 2020-11-09 11:57:13 -05:00
adapter_test.rb Allow async executor to be configurable 2021-02-19 12:34:57 -05:00
aggregations_test.rb
annotate_test.rb Remove requirement that SQL starts with SELECT 2021-04-21 10:11:38 +01:00
ar_schema_test.rb Active Record + PostgreSQL: native support for `timestamp with time zone` 2021-05-06 17:41:55 -05:00
associations_test.rb Ensure association target classes exist 2021-05-02 15:00:09 -05:00
asynchronous_queries_test.rb Merge pull request #41590 from Shopify/log-subscriber-publish 2021-03-10 16:16:36 -05:00
attribute_methods_test.rb Fix ruby-master test suite (Psych 4.0.0) 2021-05-19 14:21:21 +02:00
attributes_test.rb `attribute` should not require a connection is established 2021-02-02 15:04:23 +09:00
autosave_association_test.rb Deprecate `partial_writes` in favor of `partial_inserts` and `partial_updates` 2021-06-02 15:04:08 +02:00
base_prevent_writes_test.rb Clean up preventing writes tests 2020-11-09 11:57:13 -05:00
base_test.rb Compute table name based on model name 2021-05-12 12:34:56 -04:00
batches_test.rb Expose BatchEnumerator attributes 2021-05-28 13:32:48 -04:00
binary_test.rb Remove dead test code for unsupported adapters 2020-04-12 03:30:25 +09:00
bind_parameter_test.rb Fix `unprepared_statement` to work it when nesting 2021-02-12 22:47:27 +09:00
boolean_test.rb
cache_key_test.rb
calculations_test.rb Allow Relation#sum to take an `init` parameters 2021-05-10 13:37:25 +02:00
callbacks_test.rb Remove `require "active_support/core_ext/symbol/starts_ends_with"` 2021-02-09 22:31:09 +09:00
clone_test.rb Merge branch 'master' into previously-new-record 2020-03-28 20:04:23 +01:00
collection_cache_key_test.rb Clear `@cache_keys` cache even when eager loading 2021-04-10 21:28:28 +09:00
column_alias_test.rb Use `current_adapter?` over `ActiveRecord::Base.connection.adapter_name` in tests 2021-02-25 13:08:08 +09:00
column_definition_test.rb
comment_test.rb feat(rubocop): Add Style/RedundantRegexpEscape 2020-12-08 18:57:09 +00:00
connection_management_test.rb Allow Adapter#select_all to be performed asynchronously from a background thread pool 2021-02-08 19:17:52 +01:00
connection_pool_test.rb Fix preventing writes for ApplicationRecord 2021-01-06 09:19:19 -05:00
core_test.rb Add DATE_FORMATS[:inspect] 2020-05-06 15:05:02 -05:00
counter_cache_test.rb touch_attributes_with_time takes keyword arguments 2020-04-17 18:55:58 +09:00
custom_locking_test.rb
database_configurations_test.rb Remove deprecated methods from `ActiveRecord::DatabaseConfigurations` 2020-10-30 00:25:37 +00:00
database_selector_test.rb Explicitly fail on attempts to write into disabled sessions 2021-05-17 20:02:52 +02:00
database_statements_test.rb Enable `Layout/EmptyLinesAroundAccessModifier` cop 2019-06-13 12:00:45 +09:00
date_test.rb
date_time_precision_test.rb Active Record + PostgreSQL: native support for `timestamp with time zone` 2021-05-06 17:41:55 -05:00
date_time_test.rb Use `supports_datetime_with_precision?` rather than `subsecond_precision_supported?` 2020-04-25 02:56:53 +09:00
defaults_test.rb Use `supports_datetime_with_precision?` rather than `subsecond_precision_supported?` 2020-04-25 02:56:53 +09:00
delegated_type_test.rb Allow delegated_type to be specified primary_key and foreign_key 2020-12-18 15:06:16 +09:00
dirty_test.rb Deprecate `partial_writes` in favor of `partial_inserts` and `partial_updates` 2021-06-02 15:04:08 +02:00
disconnected_test.rb Revert "Merge pull request #19881 from sikachu/silence-mysql-errno-warning" 2020-09-14 14:02:45 +09:00
dup_test.rb Add option for `default_scope` to run on all queries 2020-12-01 11:15:08 -05:00
enum_test.rb Don't use `type.cast(value)` to emulate unchecked serialized value in `unboundable?` 2021-03-15 12:23:40 +09:00
errors_test.rb
excluding_test.rb Fix ArgumentError message for without method 2021-05-22 18:06:19 -03:00
explain_subscriber_test.rb
explain_test.rb Remove obsolete explain logging test 2020-05-05 02:24:53 +01:00
filter_attributes_test.rb Add an assertion to the regression test 2021-03-23 21:41:36 -07:00
finder_respond_to_test.rb Enable `Layout/EmptyLinesAroundAccessModifier` cop 2019-06-13 12:00:45 +09:00
finder_test.rb Add tests for ArgumentError errors in finder methods 2021-05-24 22:35:58 -03:00
fixtures_test.rb Fix fixture tests that replace connection handler 2021-04-25 01:27:06 +01:00
forbidden_attributes_protection_test.rb
habtm_destroy_order_test.rb
helper.rb Don't remove pool managers for test classes 2021-04-22 00:55:51 +01:00
hot_compatibility_test.rb Enable `Layout/EmptyLinesAroundAccessModifier` cop 2019-06-13 12:00:45 +09:00
i18n_test.rb
inheritance_test.rb Precompute Inheritance.base_class 2021-04-11 08:40:51 +02:00
insert_all_test.rb upsert_all fails cleanly for MySQL 2021-04-14 19:33:42 +02:00
instrumentation_test.rb Improve the payload name for `delete_all` to more appropriate 2021-04-10 20:19:53 +09:00
integration_test.rb Use `supports_datetime_with_precision?` rather than `subsecond_precision_supported?` 2020-04-25 02:56:53 +09:00
invalid_connection_test.rb
invertible_migration_test.rb Allow adding nonnamed expression indexes to be revertible 2020-12-11 18:24:45 +02:00
json_attribute_test.rb
json_serialization_test.rb Address intermittent CI failure due to non-determined sort order 2021-03-30 02:18:53 +09:00
json_shared_test_cases.rb Fix ruby-master test suite (Psych 4.0.0) 2021-05-19 14:21:21 +02:00
locking_test.rb Fix ruby-master test suite (Psych 4.0.0) 2021-05-19 14:21:21 +02:00
log_subscriber_test.rb chore: fix spelling 2021-04-15 14:14:59 +10:00
marshal_serialization_test.rb Update the marshalized object fixtures' version from 6.0 to 6.1 2021-02-18 17:04:15 +09:00
migration_test.rb Don't check `type` on `add_column` via column_exists?` 2021-05-12 17:06:50 -04:00
migrator_test.rb Move SchemaMigration to migration_context 2019-06-14 11:15:08 -04:00
mixin_test.rb
modules_test.rb Module#const_set is a public method 2020-09-15 17:19:37 +09:00
multi_db_migrator_test.rb Refactor schema migration on connection 2020-03-09 09:59:36 -04:00
multiparameter_attributes_test.rb
multiple_db_test.rb Removes require_dependency from the AR test suite 2020-05-06 09:01:38 +02:00
nested_attributes_test.rb Association setter methods are defined as public methods 2020-10-02 22:22:10 +09:00
nested_attributes_with_callbacks_test.rb Methods with association name are defined as public methods 2020-10-02 22:22:10 +09:00
null_relation_test.rb Avoid running async queries on null relations 2021-05-17 21:34:41 +01:00
numeric_data_test.rb
persistence_test.rb Minor test fix 2021-05-27 13:09:35 -03:00
pooled_connections_test.rb Remove dead code in tests 2020-04-11 17:41:40 +01:00
prepared_statement_status_test.rb Fix test failure if `prepared_statements` is flipped 2020-01-03 18:51:15 +09:00
primary_class_test.rb Fix primary_abstract_class in lazy loaded envs 2021-05-17 14:52:06 -04:00
primary_keys_test.rb Compute table name based on model name 2021-05-12 12:34:56 -04:00
query_cache_test.rb Deprecate legacy_connection_handling 2021-04-06 18:57:22 -04:00
quoting_test.rb Deprecate passing an Active Record object to `quote`/`type_cast` directly 2020-05-31 12:38:29 +09:00
readonly_test.rb
reaper_test.rb Fix preventing writes for ApplicationRecord 2021-01-06 09:19:19 -05:00
reflection_test.rb Derive foreign key from model name in `has_many` associations 2021-05-12 15:21:31 -04:00
relation_test.rb Remove no-op `PredicateBuilder::BaseHandler` constant 2021-02-18 17:04:15 +09:00
relations_test.rb Remove redundant tests for Relation#select 2021-05-24 22:49:57 +01:00
reload_models_test.rb
reserved_word_test.rb
result_test.rb Remove deprecated `ActiveRecord::Result#to_hash` method 2020-10-30 00:25:33 +00:00
sanitize_test.rb
schema_dumper_test.rb Active Record + PostgreSQL: native support for `timestamp with time zone` 2021-05-06 17:41:55 -05:00
schema_loading_test.rb Enable `Layout/EmptyLinesAroundAccessModifier` cop 2019-06-13 12:00:45 +09:00
secure_token_test.rb
serialization_test.rb to_json and from_json are public methods 2020-10-02 22:22:10 +09:00
serialized_attribute_test.rb Allow `serialize` attribute on `alias_attribute` 2021-02-08 20:47:19 +09:00
signed_id_test.rb Add more tests for `find_signed/!` methods 2020-10-30 12:34:54 +02:00
statement_cache_test.rb Reset statement cache for association if table_name is changed 2020-05-29 15:12:18 +09:00
statement_invalid_test.rb
store_test.rb Fix ruby-master test suite (Psych 4.0.0) 2021-05-19 14:21:21 +02:00
strict_loading_test.rb Ensure `reload` re-applies preload values for strict loading 2021-04-26 15:45:39 -04:00
suppressor_test.rb
test_case.rb Active Record + PostgreSQL: native support for `timestamp with time zone` 2021-05-06 17:41:55 -05:00
test_databases_test.rb Rename 'db' to 'test/db' in Active Record's tests 2020-03-03 13:31:12 +00:00
test_fixtures_test.rb Deprecate legacy_connection_handling 2021-04-06 18:57:22 -04:00
time_precision_test.rb Revert "Merge pull request #39613 from kamipo/where_with_custom_operator" 2020-07-17 21:05:48 +09:00
timestamp_test.rb Allow attribute aliases for timestamp magic columns 2020-06-01 21:29:33 +09:00
touch_later_test.rb
transaction_callbacks_test.rb Make sure the :if options of callbacks is not mutated 2020-12-29 03:56:54 +00:00
transaction_isolation_test.rb Don't run concurrent transaction test on sqlite3: 2019-12-17 17:15:23 +01:00
transactions_test.rb Ensure the connection used in a failed rollback is discarded 2020-11-04 17:01:07 -05:00
type_test.rb `attribute` should not require a connection is established 2021-02-02 15:04:23 +09:00
types_test.rb
unconnected_test.rb Deprecate "primary" as a connection_specification_name for ActiveRecord::Base 2020-01-08 16:49:41 -05:00
unsafe_raw_sql_test.rb Remove deprecated support for using unsafe raw SQL in `ActiveRecord::Relation` methods 2020-10-30 00:25:32 +00:00
validations_repair_helper.rb
validations_test.rb Exercise tests on decimal attribute values 2021-01-14 17:21:25 +09:00
view_test.rb
yaml_serialization_test.rb Fix ruby-master test suite (Psych 4.0.0) 2021-05-19 14:21:21 +02:00