rails/activesupport/test
John Hawthorn 725ebc9e10 Remove code for DateTime-backed TimeWithZone
At one point (I believe until ruby-1.8.0) Time could only represent
values between 1970 and the integer overflow in 2038. On modern Ruby
there does not seem to be a limit.

    >> Time.at(2**128)
    => 10783118943836478994022445751222-08-06 01:04:16 -0700

TimeWithZone will also convert a DateTime to a Time when initialized
with one, so the code we had to catch this overflow and to deal with
DateTime is dead. This commit removes this code and adjusts the test to
be more general (the old test passed but we might as well keep a better
version of the test to check that we have a large both negative and
positive range).

Co-authored-by: Adam Hess <HParker@github.com>
2024-07-11 10:34:51 -07:00
..
autoloading_fixtures Delete orphan autoloading fixtures 2021-04-06 20:14:10 +02:00
cache Pass options to write_entry in handle_expired_entry method 2024-05-14 22:56:50 +00:00
concurrency Make AbstractAdapter#lock thread local by default 2022-11-23 14:34:40 +01:00
core_ext Remove code for DateTime-backed TimeWithZone 2024-07-11 10:34:51 -07:00
dependencies Deletes AS::Dependencies::Blamable 2021-03-08 17:10:42 +01:00
deprecation [Tests only] Enable Minitest/AssertPredicate rule 2023-10-13 19:26:47 +00:00
file_fixtures
fixtures Concerns learn to be prepended 2020-02-10 02:23:33 +01:00
json Revert "Merge pull request #50489 from maniSHarma7575/50481-fix-activesupport-json-encode" 2024-05-22 18:13:23 +00:00
message_pack Fix IPAddr prefix information missing when write to cache in msgpack serializer 2024-01-15 00:40:44 -06:00
messages Fix decoding data encoded using a non-String purpose 2023-10-17 10:02:10 +02:00
notifications Fix exception guards on multiple subscriber types 2023-10-25 13:55:13 -07:00
testing Fix tests without assertions in the framework 2024-04-30 23:29:30 +00:00
xml_mini Remove leading whitespace from the XML under test 2021-01-05 22:29:25 -05:00
abstract_unit.rb Revert "Remove deprecated support for the pre-Ruby 2.4 behavior of to_time" 2024-06-02 23:52:59 +09:30
actionable_error_test.rb [Tests only] Enable Minitest/AssertPredicate rule 2023-10-13 19:26:47 +00:00
array_inquirer_test.rb Point rubocop to ruby 3.1 2024-01-03 19:02:32 +00:00
autoload_test.rb allow running each test with pure ruby path/to/test.rb 2019-12-18 08:49:19 -06:00
backtrace_cleaner_test.rb Make ActiveSupport::BacktraceCleaner copy filters and silencers on dup and clone 2024-03-29 12:13:32 +01:00
benchmarkable_test.rb allow running each test with pure ruby path/to/test.rb 2019-12-18 08:49:19 -06:00
broadcast_logger_test.rb Remove obsolete Logger severity predicates 2024-06-26 21:19:12 +00:00
callback_inheritance_test.rb Replace ableist language 2021-10-05 22:27:09 -04:00
callbacks_test.rb Update test suite for compatibility with Ruby 3.4-dev 2024-02-16 11:55:44 +01:00
clean_logger_test.rb Fix logger format with Ruby 3.1 2021-12-20 22:36:33 +00:00
concern_test.rb Enable Minitest/LiteralAsActualArgument 2023-09-13 10:09:32 +09:00
configurable_test.rb ActiveSupport::Configurable default value option 2021-07-20 10:36:58 -03:00
configuration_file_test.rb Change yaml to YAML 2022-03-29 15:19:22 +10:00
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 Prevent CurrentAttributes defaults from leaking 2024-01-11 12:40:14 -06:00
deep_mergeable_test.rb Define the method in the right place 2023-09-25 21:04:41 +00:00
dependencies_test.rb Delete the classic version of AS::Dependencies.clear 2021-08-23 10:05:08 +02:00
deprecation_test.rb Remove deprecated support to call the following methods without passing a deprecator 2024-05-01 18:45:45 +00:00
descendants_tracker_test.rb Filter reloaded classes in Class#subclasses and Class#descendants core exts 2022-09-28 12:08:58 +02:00
digest_test.rb Change the default digest for new apps to SHA256 2021-01-08 12:07:20 +01:00
encrypted_configuration_test.rb Enable Minitest/LiteralAsActualArgument 2023-09-13 10:09:32 +09:00
encrypted_file_test.rb [Tests only] Enable Minitest/AssertPredicate rule 2023-10-13 19:26:47 +00:00
environment_inquirer_test.rb [Tests only] Enable Minitest/AssertPredicate rule 2023-10-13 19:26:47 +00:00
error_reporter_test.rb ErrorReporter#unexpected to report in production but raise in development 2023-11-20 09:42:56 +01:00
evented_file_update_checker_test.rb Improve reliability of EventedFileUpdateCheckerTest fork test 2023-03-24 14:24:07 +01:00
execution_context_test.rb Extract ActiveSupport::ExecutionContext out of ActiveRecord::QueryLogs 2021-11-10 09:36:02 +01:00
executor_test.rb Fix skips in Active Support 2023-11-30 11:11:22 -05:00
file_update_checker_shared_tests.rb Avoid double wait in EventedFileUpdateCheckerTest 2021-07-22 12:29:27 -05:00
file_update_checker_test.rb Avoid double wait in EventedFileUpdateCheckerTest 2021-07-22 12:29:27 -05:00
fork_tracker_test.rb Get rid of ForkTracker.check! 2024-01-09 11:18:38 +01:00
gzip_test.rb allow running each test with pure ruby path/to/test.rb 2019-12-18 08:49:19 -06:00
hash_with_indifferent_access_test.rb Remove all code to work with Ruby < 3.1 2024-01-03 19:02:31 +00:00
i18n_test.rb allow running each test with pure ruby path/to/test.rb 2019-12-18 08:49:19 -06:00
inflector_test_cases.rb Fix humanize for strings ending with id 2023-05-31 02:16:37 +03:00
inflector_test.rb Fix ActiveSupport::Inflector.humanize(nil) 2023-07-25 17:00:28 +01:00
isolated_execution_state_test.rb Introduce ActiveSupport::IsolatedExecutionState for internal use 2021-11-18 15:55:15 +01:00
key_generator_test.rb Don't show secrets for MessageVerifier#inspect and KeyGenerator#inspect 2023-07-06 21:51:22 +02:00
lazy_load_hooks_test.rb allow running each test with pure ruby path/to/test.rb 2019-12-18 08:49:19 -06:00
log_subscriber_test.rb Remove deprecated support to bolding log text with positional boolean in ActiveSupport::LogSubscriber#color 2024-05-01 18:44:51 +00:00
logger_test.rb Rubocop 2024-02-19 13:43:59 +01:00
message_encryptor_test.rb Catch StandardError during Base64 decoding in message encryptor. 2024-05-16 03:24:52 +02:00
message_encryptors_test.rb Use throw for message error handling control flow 2023-02-12 15:16:25 -06:00
message_verifier_test.rb Don't show secrets for MessageVerifier#inspect and KeyGenerator#inspect 2023-07-06 21:51:22 +02:00
message_verifiers_test.rb Support Message{Encryptors,Verifiers}#rotate block 2022-12-19 16:35:20 -06:00
multibyte_chars_test.rb Rename behaviour to behavior in test case names 2022-05-26 17:14:18 -04:00
multibyte_proxy_test.rb allow running each test with pure ruby path/to/test.rb 2019-12-18 08:49:19 -06:00
multibyte_test_helpers.rb Remove deprecated methods in ActiveSupport::Multibyte::Unicode 2020-10-30 00:26:02 +00:00
notifications_test.rb Stop building AS::Notifications::Event manually 2023-09-29 12:34:23 -04:00
number_helper_i18n_test.rb Add :round_mode parameter support to number helpers 2020-01-05 21:23:02 +00:00
number_helper_test.rb Handle negative numbers in NumberToHumanSizeConverter 2023-10-26 18:07:15 +02:00
option_merger_test.rb Add test coverage for Object#with_options with Hash-like 2023-02-13 22:08:23 -05:00
ordered_hash_test.rb allow running each test with pure ruby path/to/test.rb 2019-12-18 08:49:19 -06:00
ordered_options_test.rb Add #to_s and pretty print for ActiveSupport::InheritableOptions 2023-11-28 17:49:15 -05:00
parameter_filter_test.rb Add AS::ParameterFilter.precompile_filters 2022-11-24 10:26:54 -06:00
proxy_object_test.rb Deprecate ActiveSupport::ProxyObject 2024-04-22 18:51:38 +02:00
reloader_test.rb ActiveSupport::Reloader should not report exception 2022-09-22 17:46:18 +02:00
rescuable_test.rb allow running each test with pure ruby path/to/test.rb 2019-12-18 08:49:19 -06:00
rotation_coordinator_tests.rb Use SHA256 digest instead of MD4 that is legacy in OpenSSL 3 2023-06-16 13:29:56 +09:00
safe_buffer_test.rb Remove deprecated SafeBuffer#clone_empty 2024-05-01 18:45:43 +00:00
secure_compare_rotator_test.rb allow running each test with pure ruby path/to/test.rb 2019-12-18 08:49:19 -06:00
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 allow running each test with pure ruby path/to/test.rb 2019-12-18 08:49:19 -06:00
string_inquirer_test.rb Point rubocop to ruby 3.1 2024-01-03 19:02:32 +00:00
subscriber_test.rb Fix ActiveSupport::Notifications.publish_event to preserve units 2024-01-17 12:53:40 +01:00
tagged_logging_test.rb Add a public API for broadcasting logs: 2023-09-25 20:40:51 +00:00
test_case_test.rb Improve error message when passing a proc to assert_difference 2024-06-09 10:46:27 +02:00
time_travel_test.rb ruby-head: handle unused block warnings 2024-04-17 12:24:12 +02:00
time_zone_test_helpers.rb Revert "Remove deprecated support for the pre-Ruby 2.4 behavior of to_time" 2024-06-02 23:52:59 +09:30
time_zone_test.rb Add ActiveSupport::TimeZone#dst? 2024-06-06 10:51:18 -07:00
transliterate_test.rb [Tests only] Enable Minitest/AssertPredicate rule 2023-10-13 19:26:47 +00:00
xml_mini_test.rb Support duration in ActiveSupport::XmlMini 2024-05-04 21:37:45 +09:00