Devguru
Webrats http_accept method missing in Capybara.

If you are missing Webrats http_accept method after migrating from Webrat to Capybara this c’d be solution for rack based driver:

page.driver.header "Accept", "application/javascript"