diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2009-03-26 19:02:11 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-03-26 19:02:11 -0700 |
commit | 34929fed2254570941309a731a386de573e64b5a (patch) | |
tree | 322005d105de136bc70c5f5af5288b7b005248a3 /activesupport | |
parent | 2a1ae9e8a1ccd16329e2c3fd1cab13b1fc620ed2 (diff) | |
download | rails-34929fed2254570941309a731a386de573e64b5a.tar.gz rails-34929fed2254570941309a731a386de573e64b5a.tar.bz2 rails-34929fed2254570941309a731a386de573e64b5a.zip |
Fix timezone test
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/test/time_zone_test.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/activesupport/test/time_zone_test.rb b/activesupport/test/time_zone_test.rb index d3dbeda2c8..7e8047566e 100644 --- a/activesupport/test/time_zone_test.rb +++ b/activesupport/test/time_zone_test.rb @@ -197,15 +197,15 @@ class TimeZoneTest < Test::Unit::TestCase end def test_seconds_to_utc_offset_with_colon - assert_equal "-06:00", TimeZone.seconds_to_utc_offset(-21_600) - assert_equal "+00:00", TimeZone.seconds_to_utc_offset(0) - assert_equal "+05:00", TimeZone.seconds_to_utc_offset(18_000) + assert_equal "-06:00", ActiveSupport::TimeZone.seconds_to_utc_offset(-21_600) + assert_equal "+00:00", ActiveSupport::TimeZone.seconds_to_utc_offset(0) + assert_equal "+05:00", ActiveSupport::TimeZone.seconds_to_utc_offset(18_000) end def test_seconds_to_utc_offset_without_colon - assert_equal "-0600", TimeZone.seconds_to_utc_offset(-21_600) - assert_equal "+0000", TimeZone.seconds_to_utc_offset(0) - assert_equal "+0500", TimeZone.seconds_to_utc_offset(18_000) + assert_equal "-0600", ActiveSupport::TimeZone.seconds_to_utc_offset(-21_600, false) + assert_equal "+0000", ActiveSupport::TimeZone.seconds_to_utc_offset(0, false) + assert_equal "+0500", ActiveSupport::TimeZone.seconds_to_utc_offset(18_000, false) end def test_formatted_offset_positive |