aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/time_zone_test.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-09-29 14:03:19 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-09-29 14:03:19 -0300
commit035cc69c48d9d538bded70fc88976cd7f23966f5 (patch)
treedb1f7ca0d8deea3063a4e19c50a0a274a07c1140 /activesupport/test/time_zone_test.rb
parent06f992730efa0864a987b428774ca83ece0c0b0a (diff)
parente2b49b203f2cb6cef93283f14838f21bf6ffb4a2 (diff)
downloadrails-035cc69c48d9d538bded70fc88976cd7f23966f5.tar.gz
rails-035cc69c48d9d538bded70fc88976cd7f23966f5.tar.bz2
rails-035cc69c48d9d538bded70fc88976cd7f23966f5.zip
Merge pull request #17099 from sferik/each_key
Use Hash#each_key instead of Hash#keys.each
Diffstat (limited to 'activesupport/test/time_zone_test.rb')
-rw-r--r--activesupport/test/time_zone_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/test/time_zone_test.rb b/activesupport/test/time_zone_test.rb
index b7a89ed332..3e6d9652bb 100644
--- a/activesupport/test/time_zone_test.rb
+++ b/activesupport/test/time_zone_test.rb
@@ -22,7 +22,7 @@ class TimeZoneTest < ActiveSupport::TestCase
assert_instance_of TZInfo::TimezonePeriod, zone.period_for_local(Time.utc(2000))
end
- ActiveSupport::TimeZone::MAPPING.keys.each do |name|
+ ActiveSupport::TimeZone::MAPPING.each_key do |name|
define_method("test_map_#{name.downcase.gsub(/[^a-z]/, '_')}_to_tzinfo") do
zone = ActiveSupport::TimeZone[name]
assert_respond_to zone.tzinfo, :period_for_local