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:
parent
aab67c94d6
commit
01c0f7095f
1 changed files with 1 additions and 0 deletions
|
@ -6,6 +6,7 @@ require 'xpath'
|
||||||
#Patch XPath to allow a nil condition in where
|
#Patch XPath to allow a nil condition in where
|
||||||
module XPath
|
module XPath
|
||||||
class Renderer
|
class Renderer
|
||||||
|
undef :where if method_defined?(:where)
|
||||||
def where(on, condition)
|
def where(on, condition)
|
||||||
condition = condition.to_s
|
condition = condition.to_s
|
||||||
if !condition.empty?
|
if !condition.empty?
|
||||||
|
|
Loading…
Add table
Reference in a new issue