Sha256: 1a6f654e5ef10bf1a741833c6540a37cdd42d6e3e38c00ceb6556aeba5b168da
Contents?: true
Size: 784 Bytes
Versions: 4
Compression:
Stored size: 784 Bytes
Contents
module RackCheck::Spec include RackCheck class Context attr_reader :app_server_command, :app_server_port, :startup_timeout def initialize(app_server_command, app_server_port, startup_timeout) @app_server_port = app_server_port @app_server_command = app_server_command @startup_timeout = startup_timeout end end STARTUP_TIMEOUT = 10 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 def self.server_context @@context end def self.load_tests require 'rack_check/spec/rackup' require 'rack_check/spec/env' end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rack_check-0.2.5 | lib/rack_check/spec.rb |
rack_check-0.2.4 | lib/rack_check/spec.rb |
rack_check-0.2.3 | lib/rack_check/spec.rb |
rack_check-0.2.2 | lib/rack_check/spec.rb |