rails--rails/activesupport/test/core_ext
Jean Boussier 25396b1c2a Avoid adding constants to Enumerable
Ref: https://github.com/aws/aws-sdk-ruby/pull/2670

Some gems like aws-sdk-core use `Object#extend(Enumerable)`.
It's not a very good pattern, but it's somehwat handled ok by Ruby.

However if Enumerable has constants, then any time the module is
extended, the global constant cache is flushed and this has a very
negative impact on performance for the virtual machine, and even
worse for JITs.
2022-03-04 13:33:17 +01:00
..
array Keep to_formatted_s working as before and add tests for it 2022-02-08 16:22:35 +00:00
class Class attribute writer is a public method 2020-10-02 15:53:46 +09:00
digest Avoid adding new method to `ActiveSupport`. 2021-11-02 01:12:32 +00:00
hash Remove deprecated file `active_support/core_ext/hash/transform_values` 2020-10-30 00:25:58 +00:00
kernel allow running each test with pure ruby path/to/test.rb 2019-12-18 08:49:19 -06:00
module Use IsolatedExecutionState in `thread_mattr_accessor` 2021-11-24 11:41:16 +01:00
object Remove some references to OrderedHash 2021-03-22 21:14:32 +09:00
pathname `Pathname.blank?` only returns true for `Pathname.new("")` 2022-02-19 09:54:58 +01:00
bigdecimal_test.rb allow running each test with pure ruby path/to/test.rb 2019-12-18 08:49:19 -06:00
class_test.rb allow running each test with pure ruby path/to/test.rb 2019-12-18 08:49:19 -06:00
date_and_time_behavior.rb allow running each test with pure ruby path/to/test.rb 2019-12-18 08:49:19 -06:00
date_and_time_compatibility_test.rb allow running each test with pure ruby path/to/test.rb 2019-12-18 08:49:19 -06:00
date_ext_test.rb Keep to_formatted_s working as before and add tests for it 2022-02-08 16:22:35 +00:00
date_time_ext_test.rb Keep to_formatted_s working as before and add tests for it 2022-02-08 16:22:35 +00:00
duration_test.rb fix: equivalent negative durations add to the same time (#43795) 2021-12-10 14:03:04 -05:00
enumerable_test.rb Avoid adding constants to Enumerable 2022-03-04 13:33:17 +01:00
file_test.rb atomic write race condition 2022-01-16 16:54:58 -08:00
hash_ext_test.rb Revert "Merge pull request #41931 from MarcelEeken/deep-merge-changing-original-hash" 2021-04-13 12:12:03 +02:00
integer_ext_test.rb allow running each test with pure ruby path/to/test.rb 2019-12-18 08:49:19 -06:00
kernel_test.rb [Active Support] Add explicit assertions to tests with no assertions 2022-02-15 23:44:25 +00:00
load_error_test.rb allow running each test with pure ruby path/to/test.rb 2019-12-18 08:49:19 -06:00
module_test.rb Autocorrect Rubocop roles 2021-04-13 18:32:25 +00:00
name_error_test.rb Remove all version checking for older Rubies in tests 2021-02-05 13:21:45 +09:00
numeric_ext_test.rb Keep to_formatted_s working as before and add tests for it 2022-02-08 16:22:35 +00:00
range_ext_test.rb Keep to_formatted_s working as before and add tests for it 2022-02-08 16:22:35 +00:00
regexp_ext_test.rb allow running each test with pure ruby path/to/test.rb 2019-12-18 08:49:19 -06:00
secure_random_test.rb update tests for SecureRandom.base58 method 2021-05-12 01:05:22 +05:30
string_ext_test.rb Deprecate implicitly coercing objects to string in ActiveSupport::SafeBuffer 2021-05-03 14:16:03 +02:00
symbol_ext_test.rb Removes Symbol#start_with? and Symbol#end_with? since they are defined in Ruby 2.7 2021-02-07 21:47:25 -03:00
time_ext_test.rb Keep to_formatted_s working as before and add tests for it 2022-02-08 16:22:35 +00:00
time_with_zone_test.rb Keep to_formatted_s working as before and add tests for it 2022-02-08 16:22:35 +00:00