module Dredd::Rack::Configuration

Hold the Dredd::Rack global configuration.

Public Instance Methods

app() click to toggle source

Return the application to be tested locally

# File lib/dredd/rack/configuration.rb, line 8
def app
  @@app
end
app=(object) click to toggle source

Set the application to be tested locally

Any Dredd::Rack::Runner configured to run locally will serve this application from a Capybara::Server instance.

object - the application Constant

# File lib/dredd/rack/configuration.rb, line 18
def app=(object)
  @@app = object
end
configure() { |self| ... } click to toggle source

Allow the default configuration to be overwritten from initializers

# File lib/dredd/rack/configuration.rb, line 39
def configure
  yield self if block_given?
end
dredd_command() click to toggle source

Return the command to be runned to invoke Dredd

# File lib/dredd/rack/configuration.rb, line 23
def dredd_command
  @@dredd_command
end
dredd_command=(command) click to toggle source

Set a custom Dredd command

command - the command String

# File lib/dredd/rack/configuration.rb, line 30
def dredd_command=(command)
  @@dredd_command = command
end