Rspec Test Failed After Changing to Capybara-webkit
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:
solution is easy, The simplest way to resolve this is to wait before checking:
There is a race condition here between Capybara sending the click action to the server and your test checking the database.