Skip to content

Commit

Permalink
Remove #parents
Browse files Browse the repository at this point in the history
  • Loading branch information
soutaro committed Aug 10, 2015
1 parent 0e26d60 commit b862792
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/capybara/selenium/node.rb
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def ==(other)
end

def path
path = parents
path = find_xpath('ancestor::*').reverse
path.unshift self

result = []
Expand All @@ -157,10 +157,6 @@ def path
'/' + result.join('/')
end

def parents
find_xpath('ancestor::*').reverse
end

private

# a reference to the select node if this is an option node
Expand Down

0 comments on commit b862792

Please sign in to comment.