diff options
author | Geoff Buesing <gbuesing@gmail.com> | 2008-01-23 02:11:00 +0000 |
---|---|---|
committer | Geoff Buesing <gbuesing@gmail.com> | 2008-01-23 02:11:00 +0000 |
commit | 2e7b2f03448e5759113ce0c182ed99897342c7a9 (patch) | |
tree | ec35655e12924d0075abc7a0e36aa1eea1e6e545 /activesupport/test | |
parent | 022d9f7ce6d1237c4103a2aed561220e1c0f4dcc (diff) | |
download | rails-2e7b2f03448e5759113ce0c182ed99897342c7a9.tar.gz rails-2e7b2f03448e5759113ce0c182ed99897342c7a9.tar.bz2 rails-2e7b2f03448e5759113ce0c182ed99897342c7a9.zip |
Adding alternate_utc_string option to TimeZone#formatted_offset. Removing unneeded TimeZone#offset
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8697 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/time_zone_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/activesupport/test/time_zone_test.rb b/activesupport/test/time_zone_test.rb index 939d928b3e..8dea36f20e 100644 --- a/activesupport/test/time_zone_test.rb +++ b/activesupport/test/time_zone_test.rb @@ -77,6 +77,12 @@ class TimeZoneTest < Test::Unit::TestCase assert_equal "-0500", zone.formatted_offset(false) end + def test_formatted_offset_zero + zone = TimeZone['London'] + assert_equal "+00:00", zone.formatted_offset + assert_equal "UTC", zone.formatted_offset(true, 'UTC') + end + def test_zone_compare zone1 = TimeZone['Central Time (US & Canada)'] # offset -0600 zone2 = TimeZone['Eastern Time (US & Canada)'] # offset -0500 |