Servers
Provides Capybara server definitions for using Falcon with Capybara integration & acceptance tests.
Usage
In your Capybara configuration, you'd typically select one of the named server configurations:
Capybara.configure do |config|
config.server = :falcon_https
end
Definitions
falcon { ... }
The default Falcon server wrapper which uses the HTTP
scheme.
Signature
-
attribute
Block
Implementation
Capybara.register_server(:falcon) do |*arguments|
require_relative 'wrapper'
Falcon::Capybara::Wrapper.new.call(*arguments)
end
falcon_http { ... }
An explicit Falcon server wrapper which uses the HTTP
scheme.
Signature
-
attribute
Block
Implementation
Capybara.register_server(:falcon_http) do |*arguments|
require_relative 'wrapper'
Falcon::Capybara::Wrapper.new('http').call(*arguments)
end
falcon_https { ... }
The default Falcon server wrapper which uses the HTTPS
scheme.
Signature
-
attribute
Block
Implementation
Capybara.register_server(:falcon_https) do |*arguments|
require_relative 'wrapper'
Falcon::Capybara::Wrapper.new('https').call(*arguments)
end