Skip to content

Commit

Permalink
Document run_default_server method
Browse files Browse the repository at this point in the history
  • Loading branch information
jnicklas committed Nov 21, 2010
1 parent 81fb593 commit 39f998d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/capybara.rb
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,15 @@ def string(html)
StringNode.new(html)
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)
begin
require 'rack/handler/thin'
Expand Down

0 comments on commit 39f998d

Please sign in to comment.