lib/rspec_html/search.rb in rspec-html-0.2.9 vs lib/rspec_html/search.rb in rspec-html-0.2.10
- old
+ new
@@ -55,10 +55,10 @@
end
def size
return @element.size if @element.respond_to?(:size)
- @siblings.size
+ @siblings&.size || 0
end
alias length size
def new_from_find(tag, options)
Element.new(