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 a56b150b64 Adjust for daylight savings in String#to_time
The changes in b79adc4323 had a bug where if the time in the String
was in standard time but the current time was in daylight savings then
the calculated adjustment was off by an hour.

This commit fixes this and adds extra tests for the following:

* time in string is standard time, current time is standard time
* time in string is standard time, current time is daylight savings
* time in string is daylight savings, current time is standard time
* time in string is daylight savings, current time is daylight savings

Fixes #10306.
2013-04-23 12:48:31 +01:00
..
autoloading_fixtures dependencies no longer trigger Kernel#autoload in remove_const [fixes #8213] 2012-11-15 04:36:36 +01:00
core_ext Adjust for daylight savings in String#to_time 2013-04-23 12:48:31 +01:00
dependencies Checkin failing test case related to load once paths 2006-12-24 14:41:29 +00:00
deprecation deprecation warning when BufferedLogger is instantiated 2012-12-25 20:21:14 +01:00
fixtures JDOM XXE Protection [CVE-2013-1856] 2013-03-15 17:46:15 -07:00
json rewrite order dependent test case. #8185 2012-12-27 17:28:42 +01:00
notifications ActiveSupport::Notifications::Instrumenter#instrument should yield 2013-03-02 16:05:05 -08:00
testing determine_constant_from_test_name does not swallow NoMethodErrors [Yves Senn] 2013-03-28 10:04:39 +01:00
xml_mini Added missing assert 2013-04-02 11:50:25 +05:30
abstract_unit.rb Set Thread.abort_on_exception for the whole AS, AP, and AR tests 2013-01-24 20:00:45 +09:00
autoload_test.rb Make ActiveSupport::Autoload local 2012-08-21 14:46:12 -03:00
benchmarkable_test.rb * BufferedLogger is deprecated. Use ActiveSupport::Logger, or the logger 2011-12-19 18:41:37 -08:00
broadcast_logger_test.rb pushed broadcasting down to a module 2012-01-20 14:18:29 -08:00
caching_test.rb switch (and lazily convert) ivar names to 3.x 2013-04-16 13:18:52 -04:00
callback_inheritance_test.rb Removed unused setup 2013-04-10 16:57:12 +05:30
callbacks_test.rb Fixes skipping object callback filters 2013-04-04 16:11:13 -07:00
class_cache_test.rb Rely solely on active_model_serializer and remove the fancy constant lookup. 2011-11-23 23:45:27 +00:00
clean_backtrace_test.rb Remove extra test case. 2012-06-19 11:56:16 -06:00
clean_logger_test.rb use AS::TestCase as the base class 2012-01-05 17:12:46 -08:00
concern_test.rb use AS::TestCase as the base class 2012-01-05 17:12:46 -08:00
configurable_test.rb minor grammar fix 2012-12-24 15:20:05 -06:00
constantize_test_cases.rb cleaning up constantize tests 2012-11-07 17:13:17 +09:00
dependencies_test.rb Merge pull request #9681 from vipulnsward/fix_typo_in_module_name 2013-03-12 03:55:30 -07:00
dependencies_test_helpers.rb Fix typo in DependenciesTestHelpers module name 2013-03-12 10:33:32 +05:30
deprecation_test.rb Test that DeprecatedConstantProxy does not warn when accessing its class 2013-01-23 13:29:40 +09:00
descendants_tracker_test_cases.rb fix assertions 2012-10-18 13:14:43 -07:00
descendants_tracker_with_autoloading_test.rb fix some typos in AS 2013-03-30 14:01:42 +05:30
descendants_tracker_without_autoloading_test.rb removing unnecessary requires 2012-01-06 14:43:04 -08:00
empty_bool.rb avoid method redefined; discarding old empty? warning [#4302 state:committed] 2010-03-30 16:59:48 -07:00
file_update_checker_test.rb Fix failing test in file update checker 2012-06-29 15:08:08 -03:00
gzip_test.rb added compress options for gzip 2013-02-10 20:01:42 +09:00
i18n_test.rb Fix failing test about date.order translation values 2013-01-19 19:32:33 -02:00
inflector_test.rb Revert "Merge pull request #10158 from steveklabnik/issue_10125" 2013-04-10 12:44:39 -03:00
inflector_test_cases.rb Inflector irregular singularize rules 2013-01-01 12:50:00 +01:00
key_generator_test.rb Add ActiveSupport::KeyGenerator as a simple wrapper around PBKDF2 2012-10-01 14:22:19 +13:00
lazy_load_hooks_test.rb Ensure load hooks can be called more than once with different contexts. 2012-03-06 22:05:07 +01:00
load_paths_test.rb use AS::TestCase as the base class 2012-01-05 17:12:46 -08:00
log_subscriber_test.rb Ensure blocks given to subscriber are properly yield 2012-05-17 08:52:40 +02:00
logger_test.rb Add ActiveSupport::Logger#silence that works the same as the old Logger#silence extension 2012-12-21 19:15:36 +01:00
message_encryptor_test.rb s/messqage/message/ in message_encryptor_test.rb 2013-01-09 13:32:35 -08:00
message_verifier_test.rb Remove deprecations from Active Support. 2011-12-20 15:18:42 +01:00
multibyte_chars_test.rb ensure original encoding doesnt change 2012-12-01 15:41:06 -05:00
multibyte_conformance.rb use AS::TestCase as the base class 2012-01-05 17:12:46 -08:00
multibyte_test_helpers.rb remove checks for encodings availability 2011-12-25 14:34:58 +03:00
multibyte_unicode_database_test.rb use AS::TestCase as the base class 2012-01-05 17:12:46 -08:00
notifications_test.rb ActiveSupport::Notifications::Instrumenter#instrument should yield 2013-03-02 16:05:05 -08:00
number_helper_i18n_test.rb Ensure I18n format values always have precedence over defaults 2012-08-11 00:20:19 -03:00
number_helper_test.rb Move number_to_human test from AP to AS 2013-02-22 19:44:50 -03:00
option_merger_test.rb use AS::TestCase as the base class 2012-01-05 17:12:46 -08:00
ordered_hash_test.rb refactor order hash test 2013-04-11 21:55:45 +05:30
ordered_options_test.rb fix some typos in AS 2013-03-30 14:01:42 +05:30
rescuable_test.rb Test that rescue_from accepts a class name in String 2013-01-23 13:29:40 +09:00
safe_buffer_test.rb Ensure [] respects the status of the buffer. 2012-02-29 16:09:02 -08:00
string_inquirer_test.rb Alias refute methods to assert_not and perfer assert_not on tests 2012-12-31 13:58:52 -03:00
tagged_logging_test.rb Revert "make new rails apps log to STDOUT" 2013-03-15 10:38:00 -07:00
test_case_test.rb Properly deprecate #pending from AS::TestCase 2012-11-18 21:34:00 -02:00
test_test.rb deprecate assert_blank and assert_present. 2013-01-05 18:04:52 +01:00
time_zone_test.rb Add regression tests for #9678 2013-03-13 05:46:34 +00:00
transliterate_test.rb fix repeat of test; remove unused variable by use of each_key 2013-03-18 19:58:02 +05:30
ts_isolated.rb Add active_support/testing/autorun 2012-12-31 13:57:24 -03:00
xml_mini_test.rb Make XmlMini.with_backend usable with threads 2012-11-15 20:23:05 +04:00