Ok here is what I did:
Remove Selenium gem from your Gemfile
in your capybara.rb:
Do not set Capybara.default_driver
Works like a charm and the tests now take 35 instead of 85 seconds.
The simplest way I think is in your test commands to export a variable. e.g. add
before you execute rspec
and in your code you can do
Is there any special feature you need Selenium for? Would be very interrested as we might have to implement Selenium support then. But I would give capybara-webkit a serious try. It's fast and uses the same engine as chrome does.