1
0
Fork 0
mirror of https://github.com/teampoltergeist/poltergeist.git synced 2022-11-09 12:05:00 -05:00

use a different path for the test and Capybara 1.0 doesn't have an a element on /

This commit is contained in:
Jon Leighton 2012-03-11 10:39:20 +00:00
parent 98c3bb564f
commit a89ec48b21

View file

@ -22,7 +22,7 @@ describe Capybara::Session do
end end
it 'should raise an error if the element was on a previous page' do it 'should raise an error if the element was on a previous page' do
@session.visit('/') @session.visit('/poltergeist/index')
node = @session.find('.//a') node = @session.find('.//a')
@session.execute_script "window.location = 'about:blank'" @session.execute_script "window.location = 'about:blank'"
expect { node.text }.to raise_error(Capybara::Poltergeist::ObsoleteNode) expect { node.text }.to raise_error(Capybara::Poltergeist::ObsoleteNode)