Permalink
Browse files

Suppress warnings: shadowing outer local variable

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...
1 parent 86e86c2 commit 180f3dcb169a716fcd4b99c024ab00cf28578766 @kou kou committed Dec 2, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/capybara/spec/spec_helper.rb
View
4 lib/capybara/spec/spec_helper.rb
@@ -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

0 comments on commit 180f3dc

Please sign in to comment.