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:
parent
98c3bb564f
commit
a89ec48b21
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ describe Capybara::Session do
|
|||
end
|
||||
|
||||
it 'should raise an error if the element was on a previous page' do
|
||||
@session.visit('/')
|
||||
@session.visit('/poltergeist/index')
|
||||
node = @session.find('.//a')
|
||||
@session.execute_script "window.location = 'about:blank'"
|
||||
expect { node.text }.to raise_error(Capybara::Poltergeist::ObsoleteNode)
|
||||
|
|
Loading…
Add table
Reference in a new issue