aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--activesupport/test/time_zone_test.rb12
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