Skip to content

Commit

Permalink
Suppress warnings: shadowing outer local variable
Browse files Browse the repository at this point in the history
lib/capybara/spec/spec_helper.rb:49: warning: shadowing outer local variable - name
lib/capybara/spec/spec_helper.rb:49: warning: shadowing outer local variable - options
  • Loading branch information
kou committed Dec 2, 2012
1 parent 86e86c2 commit 180f3dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/capybara/spec/spec_helper.rb
Expand Up @@ -46,8 +46,8 @@ def run_specs(session, name, options={})
after do
@session.reset_session!
end
specs.each do |name, options, block|
describe name, options do
specs.each do |spec_name, spec_options, block|
describe spec_name, spec_options do
class_eval(&block)
end
end
Expand Down

0 comments on commit 180f3dc

Please sign in to comment.