1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix timezone test

This commit is contained in:
Jeremy Kemper 2009-03-26 19:02:11 -07:00
parent 2a1ae9e8a1
commit 34929fed22

View file

@ -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