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

⚠️ method redefined; discarding old where

This commit is contained in:
Akira Matsuda 2016-11-03 22:21:38 +09:00
parent aab67c94d6
commit 01c0f7095f

View file

@ -6,6 +6,7 @@ require 'xpath'
#Patch XPath to allow a nil condition in where
module XPath
class Renderer
undef :where if method_defined?(:where)
def where(on, condition)
condition = condition.to_s
if !condition.empty?