Class: HttpTest::Session

Inherits:
Object
  • Object
show all
Defined in:
lib/http-test/session.rb

Overview

A session of the test server. Note that one might think that a session would holds its own test server instance; we do, however, reuse servers between tests in case multiple test cases use the same test server - which is quite likely the most common use case.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url_base: nil, command: nil) ⇒ Session

Returns a new instance of Session.



12
13
14
15
# File 'lib/http-test/session.rb', line 12

def initialize(url_base: nil, command: nil)
  @url_base = url_base
  @command  = command
end

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



10
11
12
# File 'lib/http-test/session.rb', line 10

def command
  @command
end

#url_baseObject (readonly)

Returns the value of attribute url_base.



9
10
11
# File 'lib/http-test/session.rb', line 9

def url_base
  @url_base
end