1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activesupport/test
Asherah Connor 2e14c53fc6
Add Enumerable#sole (#40914)
* Add `Enumerable#sole`, from `ActiveRecord::FinderMethods#sole`

* distinguish single-item Enumerable and two-item with nil last

Add a test for same.

* add symmetry, against rubocop's wishes
2021-04-19 11:26:34 +02:00
..
autoloading_fixtures Delete orphan autoloading fixtures 2021-04-06 20:14:10 +02:00
cache Merge pull request #41945 from jbampton/fix-grammar 2021-04-14 09:19:15 +09:00
concurrency
core_ext Add Enumerable#sole (#40914) 2021-04-19 11:26:34 +02:00
dependencies Deletes AS::Dependencies::Blamable 2021-03-08 17:10:42 +01:00
deprecation
file_fixtures
fixtures
json Change IPAddr#to_json to match the behavior of the json gem 2020-12-28 05:46:09 +00:00
messages
metadata
notifications Forward sql.active_record notifications back into the calling thread 2021-03-03 10:33:37 +01:00
testing Remove with_autoloading_fixtures from the AS::Testing::ConstantLookup test suite 2021-04-03 19:24:12 +02:00
xml_mini Remove leading whitespace from the XML under test 2021-01-05 22:29:25 -05:00
abstract_unit.rb Update test helper to call parallelize according to fork support 2021-01-25 13:50:41 -06:00
actionable_error_test.rb
array_inquirer_test.rb
autoload_test.rb
benchmarkable_test.rb
broadcast_logger_test.rb Remove deprecated LoggerSilence constant 2020-10-30 00:25:50 +00:00
callback_inheritance_test.rb
callbacks_test.rb Remove special case filtering for Procs. 2021-03-02 17:20:35 -08:00
clean_backtrace_test.rb chore: fix grammar and spelling 2021-04-12 05:30:44 +10:00
clean_logger_test.rb
concern_test.rb
configurable_test.rb
configuration_file_test.rb
constantize_test_cases.rb Remove DependenciesTestHelpers 2021-04-03 19:24:12 +02:00
constantize_test_helpers.rb Remove DependenciesTestHelpers 2021-04-03 19:24:12 +02:00
current_attributes_test.rb chore: fix grammar, spelling and minor whitespace fix 2021-04-13 21:35:50 +10:00
dependencies_test.rb Remove DependenciesTestHelpers 2021-04-03 19:24:12 +02:00
deprecation_test.rb
descendants_tracker_test_cases.rb
descendants_tracker_with_autoloading_test.rb
descendants_tracker_without_autoloading_test.rb
digest_test.rb Change the default digest for new apps to SHA256 2021-01-08 12:07:20 +01:00
encrypted_configuration_test.rb
encrypted_file_test.rb Improve error when EncryptedFile key length wrong 2020-09-24 19:45:11 -05:00
evented_file_update_checker_test.rb Listen on fork in EventedFileUpdateChecker 2020-09-26 16:35:28 -05:00
executor_test.rb
file_update_checker_shared_tests.rb
file_update_checker_test.rb
fork_tracker_test.rb
gzip_test.rb
hash_with_indifferent_access_test.rb to_yaml requires require "yaml" 2021-03-23 08:51:39 +09:00
i18n_test.rb
inflector_test.rb Handle Symbol arguments in ActiveSupport::Inflector.camelize (v2) 2021-02-02 16:11:28 -07:00
inflector_test_cases.rb Make sure Inflector.underscore returns a String 2021-04-08 16:26:45 +02:00
key_generator_test.rb ✂️ [ci skip] 2021-03-22 04:46:11 +09:00
lazy_load_hooks_test.rb
log_subscriber_test.rb Fix LogSubscriber for buffered event w/ nil logger 2021-03-29 17:31:07 -07:00
logger_test.rb Logger#info, debug, etc. are public methods 2020-10-02 15:52:09 +09:00
message_encryptor_test.rb
message_verifier_test.rb
multibyte_chars_test.rb Remove deprecated methods in ActiveSupport::Multibyte::Unicode 2020-10-30 00:26:02 +00:00
multibyte_proxy_test.rb
multibyte_test_helpers.rb Remove deprecated methods in ActiveSupport::Multibyte::Unicode 2020-10-30 00:26:02 +00:00
notifications_test.rb Merge pull request #39626 from vipulnsward/as-notification-args 2020-12-28 19:30:02 -05:00
number_helper_i18n_test.rb
number_helper_test.rb
option_merger_test.rb
ordered_hash_test.rb
ordered_options_test.rb Implement #inspect for ActiveSupport::OrderedOptions 2020-08-26 21:50:09 +05:30
parameter_filter_test.rb
reloader_test.rb
rescuable_test.rb
safe_buffer_test.rb Mark scrub as an unsafe method on SafeBuffer 2020-12-01 17:40:17 +09:00
secure_compare_rotator_test.rb
security_utils_test.rb secure_compare: Check byte size instead of length 2021-04-02 12:45:29 -04:00
share_lock_test.rb ShareLock#exclusive and sharing are both public methods 2020-10-02 15:53:47 +09:00
silence_logger_test.rb
string_inquirer_test.rb
subscriber_test.rb Forward sql.active_record notifications back into the calling thread 2021-03-03 10:33:37 +01:00
tagged_logging_test.rb Clone to keep extended Logger methods for tagged logger 2020-12-07 14:43:37 +01:00
test_case_test.rb Remove special case filtering for Procs. 2021-03-02 17:20:35 -08:00
time_travel_test.rb Use application time zone when gets time as String. 2020-11-26 11:35:23 +03:00
time_zone_test.rb Simplify Time.find_timezone! logic 2021-04-13 16:25:58 +01:00
time_zone_test_helpers.rb
transliterate_test.rb
xml_mini_test.rb Allow to opt-in to the new TimeWithZone.name and fix XmlMini serialization 2021-04-12 22:03:31 +02:00
zeitwerk_inflector_test.rb