Permalink
Browse files

TimeZone offset tests: use current_period, to ensure TimeZone#utc_off…

…set is up-to-date
  • Loading branch information...
1 parent 98199eb commit b88d394ce707f790a29b15fcf184bc6a30293bb4 @gbuesing gbuesing committed Nov 18, 2008
Showing with 3 additions and 1 deletion.
  1. +2 −0 activesupport/CHANGELOG
  2. +1 −1 activesupport/test/time_zone_test.rb
View
@@ -1,5 +1,7 @@
*2.2.2 [Final]*
+* TimeZone offset tests: use current_period, to ensure TimeZone#utc_offset is up-to-date [Geoff Buesing]
+
* Update bundled TZInfo to 0.3.12 [Geoff Buesing]
@@ -51,7 +51,7 @@ def test_from_duration_to_map
define_method("test_utc_offset_for_#{name}") do
silence_warnings do # silence warnings raised by tzinfo gem
- period = zone.tzinfo.period_for_utc(Time.utc(2009,1,1,0,0,0))
+ period = zone.tzinfo.current_period
assert_equal period.utc_offset, zone.utc_offset
end
end

0 comments on commit b88d394

Please sign in to comment.