rails/railties/test
Jean Boussier 009c7e7411 Refactor lookup of connection adapters
Right now adapters have to expose a rather byzantine API:

  - They must be defined in `active_record/connection_adapters/<name>_adapter`
  - They must define `ConnectionHandling.<name>_adapter_class`
  - They must define `ConnectionHandling.<name>_connection`

All this is not very DRY and a bit annoying. Additionally it makes
it very hard to define aliases (e.g. `mysql` => `trilogy`), or to
substitute a default adapter for a specialized one.

This refactor aims at making all this easier by exposing a simple
`register` method, that third party adapters can call from a Railtie.
2023-11-16 09:07:44 +01:00
..
application Merge pull request #49839 from skipkayhil/hm-skb-deprecation 2023-11-10 13:43:17 -05:00
command Deprecate `secrets:edit/show` and remove `secrets:setup` 2023-03-29 16:18:32 +02:00
commands Refactor lookup of connection adapters 2023-11-16 09:07:44 +01:00
configuration Raise if setting a config key that is a method name 2023-04-23 09:39:07 +02:00
engine Fix the BroadcastLogger being initialized too late: 2023-09-29 15:42:47 +02:00
fixtures This enhancement automatically updates the Dockerfile to the desired db when using db:system:change. 2023-09-19 15:33:36 -04:00
generators Refactor lookup of connection adapters 2023-11-16 09:07:44 +01:00
isolation Railties TestHelper remove_from_config should remove all occurrences 2023-10-27 10:59:12 +09:00
minitest Fix backtraces for generated plugin tests 2020-10-07 15:40:56 -05:00
railties Use double quotes more consistenly in doc and error messages 2023-10-28 11:38:49 +02:00
test_unit Set test reporter default executable to bin/rails 2023-02-02 17:11:33 -06:00
abstract_unit.rb Get rid of the `jruby_skip` test helper 2023-10-02 13:01:44 +02:00
app_loader_test.rb Turn on performance based cops 2018-07-23 15:37:06 -07:00
backtrace_cleaner_test.rb Optimize ActiveRecord::LogSubscriber#query_source_location 2023-08-31 11:56:55 +02:00
code_statistics_calculator_test.rb Add support for stylesheets and ERB views to `rails stats`. 2020-11-10 09:40:18 -07:00
code_statistics_test.rb Adding frozen_string_literal pragma to Railties. 2017-08-14 19:08:09 +02:00
console_helpers.rb Do not run tests that have `ensure` instead of `skip` 2022-09-20 22:12:20 +09:00
engine_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
env_helpers.rb Enable `Style/ExplicitBlockArgument` cop 2021-09-05 17:06:19 +02:00
generators_test.rb Use bin/rails in generator Base banner 2023-03-29 02:40:52 -04:00
initializable_test.rb Adding frozen_string_literal pragma to Railties. 2017-08-14 19:08:09 +02:00
json_params_parsing_test.rb Adding frozen_string_literal pragma to Railties. 2017-08-14 19:08:09 +02:00
path_generation_test.rb Store `secret_key_base` in `Rails.config` for local environments. 2023-06-14 16:37:23 +02:00
paths_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
plugin_helpers.rb Separate the CI environment from the application CI environment 2023-10-04 09:36:51 +00:00
rack_logger_test.rb Change the empty block style to have space inside of the block 2018-09-25 13:19:35 -04:00
rails_health_controller_test.rb add "as: :rails_health_check" to health check path (#47217) 2023-02-05 08:49:04 +01:00
rails_info_controller_test.rb Expand rails route search to all table content 2023-03-03 17:14:33 +11:00
rails_info_test.rb Revert "Merge pull request #34387 from yhirano55/rails_info_properties_json" 2019-01-08 22:21:20 +01:00
secrets_test.rb Enable `Style/RedundantBegin` cop to avoid newly adding redundant begin block 2018-12-21 06:12:42 +09:00
version_test.rb Adding frozen_string_literal pragma to Railties. 2017-08-14 19:08:09 +02:00