Class: Clumsy::TestRunner

Inherits:
Object
  • Object
show all
Defined in:
lib/clumsy/test_runner.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(server, test_file) ⇒ TestRunner

Returns a new instance of TestRunner.



6
7
8
9
# File 'lib/clumsy/test_runner.rb', line 6

def initialize(server, test_file)
  @server     = server
  @test_file  = test_file
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



4
5
6
# File 'lib/clumsy/test_runner.rb', line 4

def response
  @response
end

Instance Method Details

#processObject



15
16
17
# File 'lib/clumsy/test_runner.rb', line 15

def process
  send_request
end

#send_requestObject



11
12
13
# File 'lib/clumsy/test_runner.rb', line 11

def send_request
  @response = HTTP.send(@test_file.request_method.downcase.to_sym, @test_file.request_url)
end