Class: HttpTest::Session
- Inherits:
-
Object
- Object
- HttpTest::Session
- 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
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#url_base ⇒ Object
readonly
Returns the value of attribute url_base.
Instance Method Summary collapse
-
#initialize(url_base: nil, command: nil) ⇒ Session
constructor
A new instance of Session.
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
#command ⇒ Object (readonly)
Returns the value of attribute command.
10 11 12 |
# File 'lib/http-test/session.rb', line 10 def command @command end |
#url_base ⇒ Object (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 |