Permalink
Browse files

Suppress a warning: instance variable @label not initialized

lib/capybara/selector.rb:48: warning: instance variable @label not initialized
  • Loading branch information...
kou committed Dec 2, 2012
1 parent 180f3dc commit 599856f36b761304cfd29d1bb1ad01ca93b0cf96
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/capybara/selector.rb
View
@@ -21,6 +21,7 @@ def initialize(name, &block)
@name = name
@custom_filters = {}
@match = nil
+ @label = nil
@failure_message = nil
instance_eval(&block)
end

0 comments on commit 599856f

Please sign in to comment.