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
Andrew White ee5e476aad Make getlocal and getutc always return instances of Time
Previously these methods could return either a DateTime or a Time
depending on how the ActiveSupport::TimeWithZone instance had
been constructed. Changing to always return an instance of Time
eliminates a possible stack level too deep error in to_time where
it was wrapping a DateTime instance.

As a consequence of this the internal time value is now always an
instance of Time in the UTC timezone, whether that's as the UTC
time directly or a representation of the local time in the timezone.

There should be no consequences of this internal change and if
there are it's a bug due to leaky abstractions.
2016-04-23 19:34:54 +01:00
..
autoloading_fixtures Prevent void context warnings 2016-04-03 23:47:05 +01:00
core_ext Make getlocal and getutc always return instances of Time 2016-04-23 19:34:54 +01:00
dependencies
deprecation Fix bug where custom deprecators are not used. 2015-10-14 07:49:39 -04:00
file_fixtures
fixtures
json Fix behavior of JSON encoding for Exception 2016-04-09 23:49:43 +09:00
notifications
testing Fix bug where custom deprecators are not used. 2015-10-14 07:49:39 -04:00
xml_mini
abstract_unit.rb Remove load_paths file 2016-02-27 13:03:57 -05:00
array_inquirer_test.rb ArrayInquirer to correctly find symbols or strings 2015-08-28 16:20:02 -04:00
autoload_test.rb
benchmarkable_test.rb Make benchmark('something', silence: true) actually work 2016-02-20 18:41:33 +01:00
broadcast_logger_test.rb Revert "Add Logger option to disable message broadcasts" 2016-01-05 16:24:35 -06:00
caching_test.rb Merge pull request #24577 from mechanicles/fix-fetch-cache-miss 2016-04-18 08:35:55 -07:00
callback_inheritance_test.rb
callbacks_test.rb Deprecate passing string to define callback. 2015-12-16 19:56:20 +09:00
class_cache_test.rb
clean_backtrace_test.rb
clean_logger_test.rb
concern_test.rb
configurable_test.rb
constantize_test_cases.rb Merge pull request #21250 from ronakjangir47/safe_const 2015-09-07 08:52:36 +02:00
dependencies_test.rb tests the raising/throwing discards the watching stack 2016-03-16 07:55:54 +01:00
dependencies_test_helpers.rb
deprecation_test.rb Converting backtrace to strings before calling set_backtrace 2016-02-10 13:02:18 -05:00
descendants_tracker_test_cases.rb
descendants_tracker_with_autoloading_test.rb
descendants_tracker_without_autoloading_test.rb
evented_file_update_checker_test.rb renames AS::FileEventedUpdateChecker to AS::EventedFileUpdateChecker 2015-12-09 03:07:49 +01:00
executor_test.rb Directly support stateful executor hooks 2016-04-05 06:57:01 +09:30
file_update_checker_shared_tests.rb Make file update checker tests more resilient on Windows 2016-04-21 10:54:54 -06:00
file_update_checker_test.rb applies code style guidelines 2015-11-11 06:42:49 +01:00
gzip_test.rb
i18n_test.rb
inflector_test.rb Parameterize with options to preserve case of string 2015-11-07 16:57:04 +05:30
inflector_test_cases.rb Parameterize with options to preserve case of string 2015-11-07 16:57:04 +05:30
key_generator_test.rb
lazy_load_hooks_test.rb
load_paths_test.rb
log_subscriber_test.rb
logger_test.rb Fix logger silencing for broadcasted loggers 2016-02-11 21:00:51 +01:00
message_encryptor_test.rb
message_verifier_test.rb
multibyte_chars_test.rb Merge pull request #12877 from aroben/extended-graphemes 2015-12-31 03:04:16 -02:00
multibyte_conformance_test.rb Travis: cache unicode data downloads and beanstalkd build 2016-04-19 00:26:17 -07:00
multibyte_grapheme_break_conformance_test.rb Travis: cache unicode data downloads and beanstalkd build 2016-04-19 00:26:17 -07:00
multibyte_normalization_conformance_test.rb Travis: cache unicode data downloads and beanstalkd build 2016-04-19 00:26:17 -07:00
multibyte_proxy_test.rb ✂️ empty line at the top of files 2015-09-21 01:27:33 +09:00
multibyte_test_helpers.rb ✂️ empty line at the top of files 2015-09-21 01:27:33 +09:00
multibyte_unicode_database_test.rb
notifications_test.rb Adds exception object to instrumenter's payload 2015-12-31 01:48:22 -06:00
number_helper_i18n_test.rb
number_helper_test.rb number_to_phone formats number with regexp 2016-04-02 20:13:22 +08:00
option_merger_test.rb
ordered_hash_test.rb
ordered_options_test.rb
reloader_test.rb Publish AS::Executor and AS::Reloader APIs 2016-03-02 02:14:20 +10:30
rescuable_test.rb
safe_buffer_test.rb
security_utils_test.rb
share_lock_test.rb Test the happy path for recursive yields too 2016-02-08 05:30:10 +10:30
string_inquirer_test.rb
subscriber_test.rb
tagged_logging_test.rb Tweaked wording used in some tests. 2015-10-25 08:57:50 +00:00
test_case_test.rb Make assert_difference return the result of the yielded block. 2015-09-24 14:17:49 -03:00
time_travel_test.rb
time_zone_test.rb Add ActiveSupport::TimeZone.country_zones helper 2016-04-19 21:53:04 +03:00
time_zone_test_helpers.rb Add compatibility for Ruby 2.4 to_time changes 2016-04-23 15:03:50 +01:00
transliterate_test.rb
xml_mini_test.rb