class Capybara::Config

def server=(name)

Other tags:
    See: register_server -

Parameters:
  • options (Hash) -- Options to pass to the server block
  • name (Symbol) -- Name of the server type to use
  • name (Symbol) -- Name of the server type to use

Overloads:
  • server=([name, options])
  • server=(name)
def server=(name)
  name, options = *name if name.is_a? Array
  @server = if name.respond_to? :call
    name
  elsif options
    proc { |app, port, host| Capybara.servers[name.to_sym].call(app, port, host, options) }
  else
    Capybara.servers[name.to_sym]
  end
end