rails/activerecord/test/cases
Hana Harencarova 0bdf44d921 Raise specific exception when a connection is not defined
Co-authored-by: Matthew Draper <matthewd@github.com>
2024-07-16 19:53:46 +00:00
..
adapters update sqlite3 adapter tests to accept error messages from v3.46.0 2024-05-23 11:50:52 -04:00
arel Fix tests without assertions in the framework 2024-04-30 23:29:30 +00:00
assertions Fix a flaky test in query_assertions_test.rb (#50503) 2024-01-02 12:50:43 +01:00
associations Fix issue with IDs reader on preloaded associations for composite primary keys 2024-06-04 22:13:05 +08:00
attribute_methods Define missing attribute methods from method_missing 2024-01-05 16:56:19 +01:00
coders Fix a Gem::Version Comparison 2023-05-06 17:08:44 -07:00
connection_adapters Raise specific exception when a connection is not defined 2024-07-16 19:53:46 +00:00
database_configurations Add condensed #inspect for Pool, Adapter, Config 2024-06-21 21:23:04 +00:00
encryption Introduce compressor option to ActiveRecord::Encryption::Encryptor 2024-07-03 18:48:07 +09:00
fixture_set Validate keys in the _fixture field 2021-06-15 14:10:59 +02:00
migration Remove support for SQLServerAdapter, OracleAdapter and JBDC adapters in tests 2024-05-14 14:56:16 -04:00
persistence Ensure reload sets correct owner for each association 2023-11-18 15:59:09 +02:00
relation properly reference tables from Arel in #order 2024-06-13 00:16:32 -04:00
scoping Deprecate ConnectionPool#connection 2024-03-01 14:32:55 +01:00
tasks Deprecate ConnectionPool#connection 2024-03-01 14:32:55 +01:00
type Enable Minitest/LiteralAsActualArgument 2023-09-13 10:09:32 +09:00
type_caster Add tests guarding against regressions identified in rails/rails@640e3981 2024-03-26 12:32:13 -04:00
validations Remove support for SQLServerAdapter, OracleAdapter and JBDC adapters in tests 2024-05-14 14:56:16 -04:00
active_record_schema_test.rb Deprecate ConnectionPool#connection 2024-03-01 14:32:55 +01:00
active_record_test.rb Deprecate ConnectionPool#connection 2024-03-01 14:32:55 +01:00
adapter_prevent_writes_test.rb Fix tests without assertions in the framework 2024-04-30 23:29:30 +00:00
adapter_test.rb Add condensed #inspect for Pool, Adapter, Config 2024-06-21 21:23:04 +00:00
aggregations_test.rb Fix composed_of freezing and duplication 2022-11-25 17:36:12 +01:00
annotate_test.rb Deprecate ConnectionPool#connection 2024-03-01 14:32:55 +01:00
associations_test.rb Warn about changing query_constraints: behavior 2024-05-08 20:08:09 +00:00
asynchronous_queries_test.rb Deprecate ConnectionPool#connection 2024-03-01 14:32:55 +01:00
attribute_methods_test.rb Fix alias_attribute to ignore methods defined in parent classes 2024-06-18 09:44:31 +02:00
attributes_test.rb Deprecate ConnectionPool#connection 2024-03-01 14:32:55 +01:00
autosave_association_test.rb [Fix #52332] Handle record changed case in #save_has_one_association's inverse belongs_to association updated check 2024-07-15 09:17:44 +05:30
base_prevent_writes_test.rb Deprecate ConnectionPool#connection 2024-03-01 14:32:55 +01:00
base_test.rb Remove support for SQLServerAdapter, OracleAdapter and JBDC adapters in tests 2024-05-14 14:56:16 -04:00
batches_test.rb Fix loaded relation batching with limits and reverse order 2024-07-13 13:42:52 +03:00
binary_test.rb Ensure binary-destined values have binary encoding during type cast 2023-05-29 18:21:20 +09:30
bind_parameter_test.rb Unify Relation#klass and Relation#model 2024-05-28 11:24:35 +02:00
boolean_test.rb
cache_key_test.rb Deprecate ConnectionPool#connection 2024-03-01 14:32:55 +01:00
calculations_test.rb Fix test_pluck_functions_without_alias 2024-06-04 12:07:08 +05:30
callbacks_test.rb Remove require "active_support/core_ext/symbol/starts_ends_with" 2021-02-09 22:31:09 +09:00
clone_test.rb [Tests only] Enable Minitest/AssertPredicate rule 2023-10-13 19:26:47 +00:00
collection_cache_key_test.rb Expose assert_queries_match and assert_no_queries_match assertions 2023-12-21 01:30:16 +02:00
column_alias_test.rb Deprecate ConnectionPool#connection 2024-03-01 14:32:55 +01:00
column_definition_test.rb Don't require an active connection for table and column quoting 2024-02-27 11:19:00 +01:00
comment_test.rb Remove support for SQLServerAdapter, OracleAdapter and JBDC adapters in tests 2024-05-14 14:56:16 -04:00
connection_handling_test.rb Eliminate missed lease_connection calls 2024-05-03 13:32:33 +02:00
connection_management_test.rb Deprecate ConnectionPool#connection 2024-03-01 14:32:55 +01:00
connection_pool_test.rb Add condensed #inspect for Pool, Adapter, Config 2024-06-21 21:23:04 +00:00
core_test.rb Fix styling. 2024-05-24 09:22:25 +02:00
counter_cache_test.rb Fix typo from tests [ci skip] 2024-07-13 23:35:09 +05:30
custom_locking_test.rb Fix tests without assertions in the framework 2024-04-30 23:29:30 +00:00
database_configurations_test.rb Refactor lookup of connection adapters 2023-11-16 09:07:44 +01:00
database_selector_test.rb Deprecate ConnectionPool#connection 2024-03-01 14:32:55 +01:00
database_statements_test.rb Remove support for SQLServerAdapter, OracleAdapter and JBDC adapters in tests 2024-05-14 14:56:16 -04:00
date_test.rb
date_time_precision_test.rb Remove support for SQLServerAdapter, OracleAdapter and JBDC adapters in tests 2024-05-14 14:56:16 -04:00
date_time_test.rb Fix tests for validation of default_timezone 2021-10-14 18:11:08 +00:00
defaults_test.rb Deprecate ConnectionPool#connection 2024-03-01 14:32:55 +01:00
delegated_type_test.rb Define a class method to introspect valid delegatable types so they can 2024-01-08 20:47:16 -05:00
dirty_test.rb Fix non-partial inserts for models with composite identity primary keys 2024-05-18 12:08:33 +03:00
disconnected_test.rb Deprecate ConnectionPool#connection 2024-03-01 14:32:55 +01:00
dup_test.rb Remove support for SQLServerAdapter, OracleAdapter and JBDC adapters in tests 2024-05-14 14:56:16 -04:00
enum_test.rb Deprecate defining enums with keywords args 2024-02-10 00:20:45 +00:00
errors_test.rb Delete the deprecated constant ActiveRecord::ImmutableRelation 2024-07-13 12:51:40 +02:00
excluding_test.rb Deprecate ConnectionPool#connection 2024-03-01 14:32:55 +01:00
explain_subscriber_test.rb Deprecate ConnectionPool#connection 2024-03-01 14:32:55 +01:00
explain_test.rb Deprecate ConnectionPool#connection 2024-03-01 14:32:55 +01:00
filter_attributes_test.rb Fix styling. 2024-05-24 09:22:25 +02:00
finder_respond_to_test.rb Rename behaviour to behavior in test case names 2022-05-26 17:14:18 -04:00
finder_test.rb Fix typo from tests [ci skip] 2024-07-13 23:35:09 +05:30
fixtures_test.rb Raise specific exception when a connection is not defined 2024-07-16 19:53:46 +00:00
forbidden_attributes_protection_test.rb
habtm_destroy_order_test.rb
helper.rb Unify Relation#klass and Relation#model 2024-05-28 11:24:35 +02:00
hot_compatibility_test.rb Deprecate ConnectionPool#connection 2024-03-01 14:32:55 +01:00
i18n_test.rb
inheritance_test.rb Deprecate ConnectionPool#connection 2024-03-01 14:32:55 +01:00
inherited_test.rb Fix usage of self.inherited 2023-11-10 22:55:37 +01:00
insert_all_test.rb Add ensure to reset table name in tests 2024-06-05 11:03:18 -03:00
instrumentation_test.rb Fix a flaky Active Record instrumentation test 2024-07-11 11:35:27 +03:00
integration_test.rb Raise when a block is passed to ActiveRecord::Relation#with 2024-04-29 14:34:09 +03:00
invalid_connection_test.rb Encourage #lease_connection over #connection on AR model #inspect without connection 2024-04-21 20:43:45 +10:00
invertible_migration_test.rb Remove support for SQLServerAdapter, OracleAdapter and JBDC adapters in tests 2024-05-14 14:56:16 -04:00
json_attribute_test.rb Delete incompatible Trilogy tests 2023-04-24 09:35:28 +02:00
json_serialization_test.rb Avoid extra pass on AS::JSON.dump with no options 2023-06-29 15:37:57 -07:00
json_shared_test_cases.rb Remove support for SQLServerAdapter, OracleAdapter and JBDC adapters in tests 2024-05-14 14:56:16 -04:00
locking_test.rb Deprecate ConnectionPool#connection 2024-03-01 14:32:55 +01:00
log_subscriber_test.rb Deprecate ConnectionPool#connection 2024-03-01 14:32:55 +01:00
marshal_serialization_test.rb Only serialize associations that were loaded 2024-05-14 09:37:23 +09:00
message_pack_test.rb Load author_addresses fixtures for ActiveRecordMessagePackTest 2023-10-11 22:57:39 +03:00
migration_test.rb Raise when both :force and :if_not_exists provided to create_table 2024-04-08 23:46:48 +03:00
migrator_test.rb Refactor InternalMetadata, MigrationContext to belong to the pool 2024-02-22 12:46:41 +01:00
mixin_test.rb
modules_test.rb
multi_db_migrator_test.rb Deprecate ConnectionPool#connection 2024-03-01 14:32:55 +01:00
multiparameter_attributes_test.rb Remove support for SQLServerAdapter, OracleAdapter and JBDC adapters in tests 2024-05-14 14:56:16 -04:00
multiple_db_test.rb TestCase#create_fixtures no longer takes a block 2024-04-17 14:29:18 +02:00
nested_attributes_test.rb Add index_errors: :nested_attributes_order mode 2024-05-09 20:03:53 +08:00
nested_attributes_with_callbacks_test.rb [Tests only] Enable Minitest/AssertPredicate rule 2023-10-13 19:26:47 +00:00
normalized_attribute_test.rb Add negative where examples for normalizes 2023-09-10 16:40:29 -05:00
null_relation_test.rb Expose assert_queries_match and assert_no_queries_match assertions 2023-12-21 01:30:16 +02:00
numeric_data_test.rb
persistence_test.rb Wrap by parentheses custom complex sql literals in update_all 2024-03-24 21:08:22 +02:00
pooled_connections_test.rb Deprecate ConnectionPool#connection 2024-03-01 14:32:55 +01:00
prepared_statement_status_test.rb Deprecate ConnectionPool#connection 2024-03-01 14:32:55 +01:00
primary_class_test.rb Deprecate ConnectionPool#connection 2024-03-01 14:32:55 +01:00
primary_keys_test.rb Remove support for SQLServerAdapter, OracleAdapter and JBDC adapters in tests 2024-05-14 14:56:16 -04:00
query_cache_test.rb Pass transaction: nil in sql.active_record events if no transaction is open 2024-06-03 17:36:20 +02:00
query_logs_test.rb Fix query_logs_test.rb 2024-04-11 16:36:14 -07:00
quoting_test.rb Deprecate ConnectionPool#connection 2024-03-01 14:32:55 +01:00
readonly_test.rb Add ActiveRecord::Relation#readonly? 2024-05-27 21:51:04 +02:00
reaper_test.rb Fix tests without assertions in the framework 2024-04-30 23:29:30 +00:00
reflection_test.rb Restore inferred association class with same modularized name 2024-05-30 03:46:51 -06:00
relation_test.rb Unify Relation#klass and Relation#model 2024-05-28 11:24:35 +02:00
relations_test.rb Deprecate ActiveRecord::ImmutableRelation 2024-07-13 12:27:21 +02:00
reload_models_test.rb AR adapter helpers are now available only within AR::TestCase class 2023-01-01 21:43:24 +09:00
reserved_word_test.rb Deprecate ConnectionPool#connection 2024-03-01 14:32:55 +01:00
result_test.rb Simplify ActiveRecord::Result#hash_rows 2024-05-07 11:45:38 +02:00
sanitize_test.rb Eliminate missed lease_connection calls 2024-05-03 13:32:33 +02:00
schema_dumper_test.rb Remove support for SQLServerAdapter, OracleAdapter and JBDC adapters in tests 2024-05-14 14:56:16 -04:00
schema_loading_test.rb
secure_password_test.rb Retry flaky secure password test 2023-03-12 23:24:28 +02:00
secure_token_test.rb [Fix #49874] has_secure_token calls the setter method on initialize 2023-12-03 14:35:19 +04:00
serialization_test.rb Change ActiveRecord::Coders::YAMLColumn default to safe_load 2022-07-12 09:26:46 -07:00
serialized_attribute_test.rb Fix tests without assertions in the framework 2024-04-30 23:29:30 +00:00
shard_keys_test.rb Add .shard_keys & .connected_to_all_shards 2024-06-17 19:54:25 +02:00
shard_selector_test.rb Add automatic shard swapping middleware 2021-11-18 08:18:45 -05:00
signed_id_test.rb Ensure #signed_id outputs url_safe strings (#49507) 2023-10-06 15:24:37 +02:00
statement_cache_test.rb Deprecate ConnectionPool#connection 2024-03-01 14:32:55 +01:00
statement_invalid_test.rb Deprecate ConnectionPool#connection 2024-03-01 14:32:55 +01:00
store_test.rb Raise a descriptive error when a store column is misconfigured 2024-05-23 15:59:56 -04:00
strict_loading_test.rb Allow one to set strict_loading_mode globally 2024-06-02 14:38:38 -05:00
suppressor_test.rb
table_metadata_test.rb Add tests guarding against regressions identified in rails/rails@640e3981 2024-03-26 12:32:13 -04:00
test_case.rb TestCase#create_fixtures no longer takes a block 2024-04-17 14:29:18 +02:00
test_databases_test.rb
test_fixtures_test.rb Decouple transactional fixtures and active connections 2024-02-09 12:59:40 +01:00
time_precision_test.rb Remove support for SQLServerAdapter, OracleAdapter and JBDC adapters in tests 2024-05-14 14:56:16 -04:00
timestamp_test.rb Deprecate ConnectionPool#connection 2024-03-01 14:32:55 +01:00
token_for_test.rb Fix flaky test in AR - token for 2023-04-28 16:40:00 +05:30
touch_later_test.rb Hide changes to before_committed! behaviour behind config 2022-12-15 11:43:51 -05:00
transaction_callbacks_test.rb Deprecate ConnectionPool#connection 2024-03-01 14:32:55 +01:00
transaction_instrumentation_test.rb Define the new start_transaction.active_record event 2024-06-10 17:30:37 +02:00
transaction_isolation_test.rb Fix tests without assertions in the framework 2024-04-30 23:29:30 +00:00
transactions_test.rb ActiveRecord::Transaction#open? returns false if the transaction is finalized 2024-06-13 10:55:55 +02: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 Raise specific exception when a connection is not defined 2024-07-16 19:53:46 +00:00
unsafe_raw_sql_test.rb Fix test title mismatch 2024-06-02 10:57:55 +09:00
validations_repair_helper.rb
validations_test.rb [Tests only] Enable Minitest/AssertPredicate rule 2023-10-13 19:26:47 +00:00
view_test.rb Remove support for SQLServerAdapter, OracleAdapter and JBDC adapters in tests 2024-05-14 14:56:16 -04:00
yaml_serialization_test.rb Fix tests without assertions in the framework 2024-04-30 23:29:30 +00:00