2010-11-29 49 views
11

我必须设置或配置在哪里启动cucumber/selenium测试运行瘦服务器而不是默认的Webrick服务器?如何使黄瓜/硒运行瘦服务器,而不是Webrick

+0

只在您的宝石文件中的宝石“薄”。 请参阅http://stackoverflow.com/questions/4585544/how-to-run-cucumber-selenium-using-thin-server-instead-of-default-webrick – 2011-11-29 15:54:57

回答

21

要明确地建立精简,创建功能/支持目录中的文件有以下:

Capybara.server do |app, port| 
    require 'rack/handler/thin' 
    Rack::Handler::Thin.run(app, :Port => port) 
end 
+2

fyi,大约一年的瘦身并不是默认的 https://github.com/jnicklas/capybara/commit/5b164d4f1c256f24b6c42475ea15466fcd3f012b – 2013-12-19 03:06:01