11

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

millisami
  • 9,931
  • 15
  • 70
  • 112
  • just include the gem 'thin' in your gem file. see http://stackoverflow.com/questions/4585544/how-to-run-cucumber-selenium-using-thin-server-instead-of-default-webrick –  Nov 29 '11 at 15:54

1 Answers1

22

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
Benjamin Bouchet
  • 12,971
  • 2
  • 41
  • 73
Dan Garland
  • 3,350
  • 1
  • 24
  • 24
  • 2
    fyi, for about a year thin has not been the default https://github.com/jnicklas/capybara/commit/5b164d4f1c256f24b6c42475ea15466fcd3f012b – Michael Glass Dec 19 '13 at 03:06