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:
parent
2a8ce91de9
commit
3936f38dae
1 changed files with 1 additions and 1 deletions
|
@ -1187,7 +1187,7 @@ class FormOptionsHelperTest < ActionView::TestCase
|
||||||
def test_time_zone_select_with_priority_zones_as_regexp
|
def test_time_zone_select_with_priority_zones_as_regexp
|
||||||
@firm = Firm.new("D")
|
@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
|
def tz.=~(re); %(A D).include?(name) end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue