class HttpTest::Session
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.
Attributes
command[R]
url_base[R]
Public Class Methods
new(url_base: nil, command: nil)
click to toggle source
# File lib/http-test/session.rb, line 12 def initialize(url_base: nil, command: nil) @url_base = url_base @command = command end
Private Class Methods
start!(url_base: nil, command: nil)
click to toggle source
# File lib/http-test/session.rb, line 26 def self.start!(url_base: nil, command: nil) session = Session.new url_base: url_base, command: command session.send :start! session end
Private Instance Methods
start!()
click to toggle source
# File lib/http-test/session.rb, line 19 def start! return unless @command Server.start! @command @url_base = Server.url_base end