mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
cleanup expectation
This commit is contained in:
parent
1f52b8d92a
commit
eaf1a61238
1 changed files with 2 additions and 2 deletions
|
@ -29,9 +29,9 @@ Capybara::SpecHelper.spec "node" do
|
|||
|
||||
describe "#parent" do
|
||||
it "should be deprecated" do
|
||||
expect_any_instance_of(Kernel).to receive(:warn).with(/^DEPRECATED:/)
|
||||
@node = @session.find(:css, '#first')
|
||||
expect(@node.parent).to eq(@node.session.document)
|
||||
expect(@node).to receive(:warn).with(/^DEPRECATED:/)
|
||||
expect(@node.parent).to eq(@node.query_scope)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue