1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

suppress a warning:

lib/capybara/selector.rb:54: warning: instance variable @match not initialized
This commit is contained in:
Kouhei Sutou 2012-01-08 22:50:41 +09:00
parent 2a9a968d8b
commit be895c07f4

View file

@ -20,6 +20,7 @@ module Capybara
def initialize(name, &block) def initialize(name, &block)
@name = name @name = name
@custom_filters = {} @custom_filters = {}
@match = nil
instance_eval(&block) instance_eval(&block)
end end