diff --git a/lib/capybara/selector.rb b/lib/capybara/selector.rb index fd3cf05f..5c9e25ae 100644 --- a/lib/capybara/selector.rb +++ b/lib/capybara/selector.rb @@ -20,6 +20,7 @@ module Capybara def initialize(name, &block) @name = name @custom_filters = {} + @match = nil instance_eval(&block) end