Module: Dredd::Rack::Configuration
- Included in:
- Dredd::Rack
- Defined in:
- lib/dredd/rack/configuration.rb
Overview
Hold the Dredd::Rack global configuration.
Constant Summary collapse
- @@app =
Default configuration
nil
Instance Method Summary collapse
-
#app ⇒ Object
Return the application to be tested locally.
-
#app=(object) ⇒ Object
Set the application to be tested locally.
Instance Method Details
#app ⇒ Object
Return the application to be tested locally
8 9 10 |
# File 'lib/dredd/rack/configuration.rb', line 8 def app @@app end |
#app=(object) ⇒ Object
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
18 19 20 |
# File 'lib/dredd/rack/configuration.rb', line 18 def app=(object) @@app = object end |