Since upgrading to Capybara 2.4, I\'ve been running into this issue. Previously, this block worked fine:
page.document.synchronize do page.should have_no_c
Since version of Capybara 2.0 you can customize inline wait time parameter to pass it into the #have_no_css method:
#have_no_css
page.should have_no_css('#ajax_indicator', visible: true, wait: 3)