Permalink
Browse files

Merge pull request #10055 from vipulnsward/remove_each_with_index_in_…

…test

each_with_index  => each as we dont use index
  • Loading branch information...
2 parents 6871b2e + 0beec24 commit defb5a2f5ab16a0ec5a791a998d5427ded7ac26c @spastorino spastorino committed Apr 2, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/test/template/form_options_helper_test.rb
@@ -1115,7 +1115,7 @@ def test_time_zone_select_with_priority_zones_as_regexp_using_grep_finds_no_zone
@firm = Firm.new("D")
priority_zones = /A|D/
- @fake_timezones.each_with_index do |tz, i|
+ @fake_timezones.each do |tz|
priority_zones.stubs(:===).with(tz).raises(Exception)
end

0 comments on commit defb5a2

Please sign in to comment.