Skip to content

Commit

Permalink
Use #find instead of #select.first
Browse files Browse the repository at this point in the history
  • Loading branch information
ryansch committed Feb 7, 2013
1 parent 1d382cb commit 1fdd501
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/support/disable_external_tests.rb
Expand Up @@ -8,10 +8,10 @@ def disable(top_level_example_group)
example_description = to_disable.pop

to_disable.each do |description|
example_group = example_group.children.select{ |g| g.description == description }.first
example_group = example_group.children.find{ |g| g.description == description }
end

example = example_group.examples.select{ |e| e.description == example_description }.first
example = example_group.examples.find{ |e| e.description == example_description }

example.metadata[:external_test_disabled] = true
end
Expand Down

0 comments on commit 1fdd501

Please sign in to comment.