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
.load_tests ⇒ Object
28 29 30 31 |
# File 'lib/rack_check/spec.rb', line 28 def self.load_tests require 'rack_check/spec/rackup' require 'rack_check/spec/env' end |
.run(app_server_command, app_server_port) ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/rack_check/spec.rb', line 16 def self.run(app_server_command, app_server_port) load_tests @@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
24 25 26 |
# File 'lib/rack_check/spec.rb', line 24 def self.server_context @@context end |