Rspec Test Failed After Changing to Capybara-webkit
problem as
written some RSpec test for my rails 3.2 application and because I was annyoed by the Browser popping up ich tried to change from firefox to capybara-webkit. After this all tests still run, except one. The line that is failing is:
1
|
|
solution is easy, The simplest way to resolve this is to wait before checking:
1
|
|
There is a race condition here between Capybara sending the click action to the server and your test checking the database.