Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

each_with_index => each as we dont use index #10055

Merged
merged 1 commit into from

2 participants

Vipul A M Santiago Pastorino
Vipul A M

each_with_index to each as we don't use index in test

Santiago Pastorino spastorino merged commit defb5a2 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 2, 2013
  1. Vipul A M
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  actionpack/test/template/form_options_helper_test.rb
2  actionpack/test/template/form_options_helper_test.rb
View
@@ -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
Something went wrong with that request. Please try again.