Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make cucumber/selenium run Thin server instead of Webrick

where do I have to setup or configure to fire cucumber/selenium test to run Thin server instead of the default Webrick server?

like image 886
Autodidact Avatar asked Nov 29 '10 11:11

Autodidact


1 Answers

To explicitly setup Thin, create a file within the features/support directory with the following:

Capybara.server do |app, port|
  require 'rack/handler/thin'
  Rack::Handler::Thin.run(app, :Port => port)
end
like image 155
Dan Garland Avatar answered Sep 19 '22 21:09

Dan Garland