Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run cucumber selenium using Thin server instead of default Webrick?

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?

like image 608
Autodidact Avatar asked Jan 03 '11 15:01

Autodidact


1 Answers

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
like image 176
Mathieu J. Avatar answered Oct 23 '22 04:10

Mathieu J.