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:
parent
2a1ae9e8a1
commit
34929fed22
1 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue