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

cleanup expectation

This commit is contained in:
Thomas Walpole 2016-07-18 15:30:44 -07:00
parent 1f52b8d92a
commit eaf1a61238

View file

@ -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