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
Kev 0ab5a3a4ab Allow subsecond resolution in travel_to helper
The `travel_to` helper didn’t support subsecond time traveling in order
to prevent problems with external services, such as MySQL. This,
however, makes it impossible to test features that use durations less
than a second ("subsecond").

This therefore allows `travel_to` to stub `Time.now` with the accurate
time passed to it as `date_or_time` if the `with_usec` optional argument
is set to true:

    Time.now.inspect # => 2022-01-05 22:36:54.613371959 +0000
    travel_to(0.1.seconds.from_now, with_usec: true)
    Time.now.inspect # => 2022-01-05 22:36:54.713371959 +0000
2022-01-06 00:53:35 +01:00
..
autoloading_fixtures Delete orphan autoloading fixtures 2021-04-06 20:14:10 +02:00
cache Fix flakey Memcache tests 2021-12-13 15:06:03 -06:00
concurrency
core_ext fix: equivalent negative durations add to the same time (#43795) 2021-12-10 14:03:04 -05:00
dependencies Deletes AS::Dependencies::Blamable 2021-03-08 17:10:42 +01:00
deprecation
file_fixtures
fixtures
json Allow any module or class to be converted to JSON in a simple way 2021-06-18 14:06:50 +09:00
messages
metadata
notifications Only wrap subscriber exceptions if there is more than one 2021-11-02 16:47:37 +01:00
testing assert_changes works on including Assertions class 2021-07-25 14:27:18 -04: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 Enable Lint/DuplicateMethods rubocop rule 2021-11-15 13:51:28 -05:00
autoload_test.rb
benchmarkable_test.rb
broadcast_logger_test.rb
callback_inheritance_test.rb Replace ableist language 2021-10-05 22:27:09 -04:00
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 Fix logger format with Ruby 3.1 2021-12-20 22:36:33 +00:00
concern_test.rb
configurable_test.rb ActiveSupport::Configurable default value option 2021-07-20 10:36:58 -03:00
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 Introduce ActiveSupport::IsolatedExecutionState for internal use 2021-11-18 15:55:15 +01:00
dependencies_test.rb Delete the classic version of AS::Dependencies.clear 2021-08-23 10:05:08 +02:00
deprecation_test.rb Allow entirely opting out of deprecation warnings 2021-07-29 16:00:02 -05:00
descendants_tracker_test.rb Fix DescendantTracker.clear on Ruby 3.1 2021-11-25 17:32:52 +01: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 Credentials: support hash style access in more cases 2021-06-02 10:34:22 -05:00
encrypted_file_test.rb Raise missing key error when master key env var is blank 2021-06-03 16:21:53 +02:00
error_reporter_test.rb Require the ErrorReporter#handle fallback to be a callable 2021-11-25 13:33:51 -05:00
evented_file_update_checker_test.rb Avoid double wait in EventedFileUpdateCheckerTest 2021-07-22 12:29:27 -05:00
execution_context_test.rb Extract ActiveSupport::ExecutionContext out of ActiveRecord::QueryLogs 2021-11-10 09:36:02 +01:00
executor_test.rb Rails standardized error reporting interface 2021-11-16 13:34:53 +01: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
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 Support clearing acronyms in ActiveSupport::Inflector::Inflections 2021-06-15 10:22:19 +01:00
inflector_test_cases.rb Fix (Inflector::Methods#underscore): small regression 2021-10-28 00:25:09 +02:00
isolated_execution_state_test.rb Introduce ActiveSupport::IsolatedExecutionState for internal use 2021-11-18 15:55:15 +01:00
key_generator_test.rb ✂️ [ci skip] 2021-03-22 04:46:11 +09:00
lazy_load_hooks_test.rb
log_subscriber_test.rb Report async queries lock wait duration 2021-06-25 13:59:47 +02:00
logger_test.rb Use IsolatedExecutionState across Active Support 2021-11-19 09:58:15 +01: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 Fix flakey test in notifications_test.rb 2021-11-30 14:03:32 -06:00
number_helper_i18n_test.rb
number_helper_test.rb Fix number_to_currency regression in handling "-0.0" 2021-08-25 22:30:12 -04:00
option_merger_test.rb Support Object#with_options without a block 2021-11-15 17:00:36 -05:00
ordered_hash_test.rb
ordered_options_test.rb
parameter_filter_test.rb
per_thread_registry_test.rb Eliminate internal uses of PerThreadRegistry and deprecate it 2021-11-22 09:53:16 +01:00
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
silence_logger_test.rb
string_inquirer_test.rb Enable Lint/DuplicateMethods rubocop rule 2021-11-15 13:51:28 -05:00
subscriber_test.rb Enable Lint/DuplicateMethods rubocop rule 2021-11-15 13:51:28 -05: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 chore: Use e.g. which is the more used spelling 2021-07-21 09:17:54 +09:00
time_travel_test.rb Allow subsecond resolution in travel_to helper 2022-01-06 00:53:35 +01:00
time_zone_test.rb Improve compatibility with date versions 3.2.1, 3.1.2, 3.0.2 and 2.0.1 2021-11-15 12:04:55 +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