1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Ditch each_with_index for each.

We never touch the index, so don't bother.
This commit is contained in:
Kasper Timm Hansen 2015-11-22 16:14:37 +01:00
parent 2a8ce91de9
commit 3936f38dae

View file

@ -1187,7 +1187,7 @@ class FormOptionsHelperTest < ActionView::TestCase
def test_time_zone_select_with_priority_zones_as_regexp
@firm = Firm.new("D")
@fake_timezones.each_with_index do |tz, i|
@fake_timezones.each do |tz|
def tz.=~(re); %(A D).include?(name) end
end