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:
parent
2a9a968d8b
commit
be895c07f4
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue