Class: RackCheck::Spec::Context

Inherits:
Object
  • Object
show all
Defined in:
lib/rack_check/spec.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(app_server_command, app_server_port, startup_timeout) ⇒ Context

Returns a new instance of Context.



7
8
9
10
11
# File 'lib/rack_check/spec.rb', line 7

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

Instance Attribute Details

#app_server_commandObject (readonly)

Returns the value of attribute app_server_command.



5
6
7
# File 'lib/rack_check/spec.rb', line 5

def app_server_command
  @app_server_command
end

#app_server_portObject (readonly)

Returns the value of attribute app_server_port.



5
6
7
# File 'lib/rack_check/spec.rb', line 5

def app_server_port
  @app_server_port
end

#startup_timeoutObject (readonly)

Returns the value of attribute startup_timeout.



5
6
7
# File 'lib/rack_check/spec.rb', line 5

def startup_timeout
  @startup_timeout
end