mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
0ab5a3a4ab
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 |
||
---|---|---|
.. | ||
autoloading_fixtures | ||
cache | ||
concurrency | ||
core_ext | ||
dependencies | ||
deprecation | ||
file_fixtures | ||
fixtures | ||
json | ||
messages | ||
metadata | ||
notifications | ||
testing | ||
xml_mini | ||
abstract_unit.rb | ||
actionable_error_test.rb | ||
array_inquirer_test.rb | ||
autoload_test.rb | ||
benchmarkable_test.rb | ||
broadcast_logger_test.rb | ||
callback_inheritance_test.rb | ||
callbacks_test.rb | ||
clean_backtrace_test.rb | ||
clean_logger_test.rb | ||
concern_test.rb | ||
configurable_test.rb | ||
configuration_file_test.rb | ||
constantize_test_cases.rb | ||
constantize_test_helpers.rb | ||
current_attributes_test.rb | ||
dependencies_test.rb | ||
deprecation_test.rb | ||
descendants_tracker_test.rb | ||
digest_test.rb | ||
encrypted_configuration_test.rb | ||
encrypted_file_test.rb | ||
error_reporter_test.rb | ||
evented_file_update_checker_test.rb | ||
execution_context_test.rb | ||
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 | ||
i18n_test.rb | ||
inflector_test.rb | ||
inflector_test_cases.rb | ||
isolated_execution_state_test.rb | ||
key_generator_test.rb | ||
lazy_load_hooks_test.rb | ||
log_subscriber_test.rb | ||
logger_test.rb | ||
message_encryptor_test.rb | ||
message_verifier_test.rb | ||
multibyte_chars_test.rb | ||
multibyte_proxy_test.rb | ||
multibyte_test_helpers.rb | ||
notifications_test.rb | ||
number_helper_i18n_test.rb | ||
number_helper_test.rb | ||
option_merger_test.rb | ||
ordered_hash_test.rb | ||
ordered_options_test.rb | ||
parameter_filter_test.rb | ||
per_thread_registry_test.rb | ||
reloader_test.rb | ||
rescuable_test.rb | ||
safe_buffer_test.rb | ||
secure_compare_rotator_test.rb | ||
security_utils_test.rb | ||
share_lock_test.rb | ||
silence_logger_test.rb | ||
string_inquirer_test.rb | ||
subscriber_test.rb | ||
tagged_logging_test.rb | ||
test_case_test.rb | ||
time_travel_test.rb | ||
time_zone_test.rb | ||
time_zone_test_helpers.rb | ||
transliterate_test.rb | ||
xml_mini_test.rb |