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

remove deprecated Node#parent

This commit is contained in:
Thomas Walpole 2016-08-17 13:25:51 -07:00
parent fd3e9e3161
commit 51ab6109aa
2 changed files with 0 additions and 14 deletions

View file

@ -108,12 +108,6 @@ module Capybara
base.find_xpath(xpath)
end
# @deprecated Use query_scope instead
def parent
warn "DEPRECATED: #parent is deprecated in favor of #query_scope - Note: #parent was not the elements parent in the document so it's most likely not what you wanted anyway"
query_scope
end
# @api private
def session_options
session.config

View file

@ -27,14 +27,6 @@ Capybara::SpecHelper.spec "node" do
end
end
describe "#parent" do
it "should be deprecated" do
@node = @session.find(:css, '#first')
expect(@node).to receive(:warn).with(/^DEPRECATED:/)
expect(@node.parent).to eq(@node.query_scope)
end
end
describe "#text" do
it "should extract node texts" do
expect(@session.all('//a')[0].text).to eq('labore')