Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix timezone test

  • Loading branch information...
commit 34929fed2254570941309a731a386de573e64b5a 1 parent 2a1ae9e
@jeremy jeremy authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 activesupport/test/time_zone_test.rb
View
12 activesupport/test/time_zone_test.rb
@@ -197,15 +197,15 @@ def test_utc_offset_lazy_loaded_from_tzinfo_when_not_passed_in_to_initialize
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
Please sign in to comment.
Something went wrong with that request. Please try again.