Module: RackCheck::Spec
- Includes:
- RackCheck
- Defined in:
- lib/rack_check/spec.rb,
lib/rack_check/spec/env.rb,
lib/rack_check/spec/rackup.rb
Defined Under Namespace
Classes: Context
Constant Summary collapse
- STARTUP_TIMEOUT =
10
Constants included from RackCheck
Class Method Summary collapse
Class Method Details
.run(app_server_command, app_server_port) ⇒ Object
16 17 18 19 20 21 |
# File 'lib/rack_check/spec.rb', line 16 def self.run(app_server_command, app_server_port) @@context = Context.new(app_server_command, app_server_port, STARTUP_TIMEOUT) # TODO there must be a better way to pass context to a rspec suite RSpec::Core::Runner.run([]) end |
.server_context ⇒ Object
23 24 25 |
# File 'lib/rack_check/spec.rb', line 23 def self.server_context @@context end |