Question

my cucumber features with selenium runs (for Rails 3 app) using the default Webrick server.

How can I force or setup to run with Thin server instead of Webrick? Any settings to put in env.rb file or else?

Was it helpful?

Solution

Two ways:

1) turn off capybara's built in server and run it yourself.

2) Looks like someone patched in the capability here https://github.com/jnicklas/capybara/pull/175

OTHER TIPS

This is the new way to do this with recent capybara

require "rack/handler/unicorn"
Capybara.register_server(:unicorn) do |app, port, host|
  Rack::Handler::Unicorn.run(app, :Port => port)
end
Capybara.server = :unicorn
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top