have dont_find methods check twice, once now, once after Capybara.default_wait_time

This commit is contained in:
John Bintz 2013-02-08 08:08:40 -05:00
parent 6e4acf7966
commit 4dffc6c84f
1 changed files with 4 additions and 0 deletions

View File

@ -77,6 +77,10 @@ end
def dont_find_wrap(search)
yield
sleep Capybara.default_wait_time
yield
raise Capybara::ElementFound.new(search)
rescue Capybara::ElementNotFound
true