Skip to content

Commit

Permalink
TimeZone offset tests: use current_period, to ensure TimeZone#utc_off…
Browse files Browse the repository at this point in the history
…set is up-to-date
  • Loading branch information
gbuesing committed Nov 18, 2008
1 parent 51572ad commit dac9180
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions activesupport/CHANGELOG
@@ -1,5 +1,9 @@
*Edge*

* TimeZone offset tests: use current_period, to ensure TimeZone#utc_offset is up-to-date [Geoff Buesing]

* TimeZone: Caracas GMT offset changed to -4:30 #1361 [Phil Ross]

* Update bundled TZInfo to 0.3.12 [Geoff Buesing]

* TimeWithZone#freeze: preload instance variables so that we can actually freeze [Geoff Buesing]
Expand Down
2 changes: 1 addition & 1 deletion activesupport/test/time_zone_test.rb
Expand Up @@ -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(2006,1,1,0,0,0))
period = zone.tzinfo.current_period
assert_equal period.utc_offset, zone.utc_offset
end
end
Expand Down

0 comments on commit dac9180

Please sign in to comment.