diff options
author | Geoff Buesing <gbuesing@gmail.com> | 2008-02-10 18:20:37 +0000 |
---|---|---|
committer | Geoff Buesing <gbuesing@gmail.com> | 2008-02-10 18:20:37 +0000 |
commit | 521714a39d2f74f6a7e617db68f8fafc93a425a0 (patch) | |
tree | 2eafd75da5bea0804aae3f5a7d9d8d7e3faeb01f /activesupport/test/core_ext/time_with_zone_test.rb | |
parent | 94fa9fb74541b60ed04f2694558a6a98a9ce1cab (diff) | |
download | rails-521714a39d2f74f6a7e617db68f8fafc93a425a0.tar.gz rails-521714a39d2f74f6a7e617db68f8fafc93a425a0.tar.bz2 rails-521714a39d2f74f6a7e617db68f8fafc93a425a0.zip |
Pruning unneeded Time#change_time_zone_to_current. Enhanced docs for #change_time_zone
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8848 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/test/core_ext/time_with_zone_test.rb')
-rw-r--r-- | activesupport/test/core_ext/time_with_zone_test.rb | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/activesupport/test/core_ext/time_with_zone_test.rb b/activesupport/test/core_ext/time_with_zone_test.rb index eae4d3094e..3f0ec0720b 100644 --- a/activesupport/test/core_ext/time_with_zone_test.rb +++ b/activesupport/test/core_ext/time_with_zone_test.rb @@ -38,12 +38,6 @@ uses_tzinfo 'TimeWithZoneTest' do end end - def test_change_time_zone_to_current - Time.use_zone 'Alaska' do - assert_equal ActiveSupport::TimeWithZone.new(nil, TimeZone['Alaska'], Time.utc(1999, 12, 31, 19)), @twz.change_time_zone_to_current - end - end - def test_utc? assert_equal false, @twz.utc? assert_equal true, ActiveSupport::TimeWithZone.new(Time.utc(2000), TimeZone['UTC']).utc? @@ -209,21 +203,6 @@ uses_tzinfo 'TimeWithZoneTest' do end end - def test_change_time_zone_to_current - Time.use_zone 'Alaska' do - assert_equal 'Sat, 01 Jan 2000 00:00:00 AKST -09:00', @t.change_time_zone_to_current.inspect - assert_equal 'Sat, 01 Jan 2000 00:00:00 AKST -09:00', @dt.change_time_zone_to_current.inspect - end - Time.use_zone 'Hawaii' do - assert_equal 'Sat, 01 Jan 2000 00:00:00 HST -10:00', @t.change_time_zone_to_current.inspect - assert_equal 'Sat, 01 Jan 2000 00:00:00 HST -10:00', @dt.change_time_zone_to_current.inspect - end - Time.use_zone nil do - assert_equal @t, @t.change_time_zone_to_current - assert_equal @dt, @dt.change_time_zone_to_current - end - end - def test_use_zone Time.zone = 'Alaska' Time.use_zone 'Hawaii' do |