1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

Document run_default_server method

This commit is contained in:
Jonas Nicklas 2010-11-21 14:08:07 +01:00
parent 81fb593f0c
commit 39f998d846

View file

@ -156,6 +156,15 @@ module Capybara
StringNode.new(html) StringNode.new(html)
end end
##
#
# Runs Capybara's default server for the given application and port
# under most circumstances you should not have to call this method
# manually.
#
# @param [Rack Application] app The rack application to run
# @port [Fixnum] port The port to run the application on
#
def run_default_server(app, port) def run_default_server(app, port)
begin begin
require 'rack/handler/thin' require 'rack/handler/thin'