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:
parent
81fb593f0c
commit
39f998d846
1 changed files with 9 additions and 0 deletions
|
@ -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'
|
||||||
|
|
Loading…
Reference in a new issue