diff options
author | Andrew White <andyw@pixeltrix.co.uk> | 2012-12-11 13:57:05 +0000 |
---|---|---|
committer | Andrew White <andyw@pixeltrix.co.uk> | 2012-12-11 13:57:05 +0000 |
commit | 48583f8bf74d1cefefea3cd6591bd546a9eaff6c (patch) | |
tree | 50ebc308bc70cddb151cf7ebdc375eaaae812fd1 /activesupport/test/core_ext/string_ext_test.rb | |
parent | 45a6f546b6047befdef9d4acb8fa6c18cc0dab09 (diff) | |
download | rails-48583f8bf74d1cefefea3cd6591bd546a9eaff6c.tar.gz rails-48583f8bf74d1cefefea3cd6591bd546a9eaff6c.tar.bz2 rails-48583f8bf74d1cefefea3cd6591bd546a9eaff6c.zip |
Deprecate obsolete Time to DateTime fallback methods
The Time.time_with_datetime_fallback, Time.utc_time and Time.local_time
methods were added to handle the limitations of Ruby's native Time
implementation. Those limitations no longer apply so we are deprecating
them in 4.0 and they will be removed in 4.1.
Diffstat (limited to 'activesupport/test/core_ext/string_ext_test.rb')
-rw-r--r-- | activesupport/test/core_ext/string_ext_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/test/core_ext/string_ext_test.rb b/activesupport/test/core_ext/string_ext_test.rb index 7ebacc8720..fa8839bcb3 100644 --- a/activesupport/test/core_ext/string_ext_test.rb +++ b/activesupport/test/core_ext/string_ext_test.rb @@ -291,7 +291,7 @@ class StringConversionsTest < ActiveSupport::TestCase assert_equal Time.utc(2005, 2, 27, 23, 50, 19, 275038), "2005-02-27T23:50:19.275038".to_time assert_equal Time.local(2005, 2, 27, 23, 50, 19, 275038), "2005-02-27T23:50:19.275038".to_time(:local) assert_equal DateTime.civil(2039, 2, 27, 23, 50), "2039-02-27 23:50".to_time - assert_equal Time.local_time(2039, 2, 27, 23, 50), "2039-02-27 23:50".to_time(:local) + assert_equal Time.local(2039, 2, 27, 23, 50), "2039-02-27 23:50".to_time(:local) assert_equal Time.utc(2011, 2, 27, 23, 50), "2011-02-27 22:50 -0100".to_time assert_nil "".to_time end |